Skip to content

Commit 501896a

Browse files
authored
Merge pull request #26 from jalbrzym/no-new-line
Prevent adding a new line at the end of the modified file
2 parents d6a8504 + 8e297ba commit 501896a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RegexReplace/RegexReplace.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ try {
4747
Write-Host "Replacing $findRegex with $replaceRegex ($ext)"
4848

4949
foreach ($path in $inputPaths) {
50-
$setContentParams = @{ Path = $path }
50+
$setContentParams = @{ Path = $path; NoNewLine = $true }
5151
$getContentParams = @{ Path = $path }
5252

5353
Write-Host "...in file $path"

0 commit comments

Comments
 (0)