Comments (2)
I have the same issue. This is caused by how the contents of the file is read.
$text = Get-Content $path -Encoding UTF8
messes up the new lines. This can be fixed by adding the -Raw option:
$text = Get-Content $path -Encoding UTF8 -Raw
from vsts-regex-tasks.
This got merged now..
Closing.
from vsts-regex-tasks.
Related Issues (20)
- how to replace with env variable, which its name is the captured group? (i.e. $3) HOT 1
- Found 0 files to perform regEx replace HOT 1
- Wrong error on empty "Replace With" HOT 3
- Encoding is always UTF-8 HOT 4
- Linux build agent support HOT 2
- Replace Connectionstring HOT 1
- UTF-8-BOM HOT 2
- Using Variables and Backreferences in Replace HOT 1
- we started facing issue with new version 3.3.0 (RegEx Find & Replace) HOT 7
- All RegEx Find & Replace tasks in pipelines are suddenly failing for different reasons HOT 3
- All RegEx Find & Replace tasks in pipelines fail. The reason is that "A parameter cannot be found that matches parameter name 'NoNewLine'." HOT 23
- PowerShell version check doesn't fail the task HOT 6
- Changes not being made HOT 2
- Support \X token HOT 1
- Getting "A parameter cannot be found that matches parameter name 'Raw'." HOT 6
- Select a group within the Regex and replace it with a variable
- RegexReplace@3 turns the file into UTF-8 with BOM, how to export without BOM?
- Replace is case insenstitive HOT 1
- Pipeline step runs successfully but no change to code on branch
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vsts-regex-tasks.