File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
DSCResources/DSR_ReplaceText Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -399,7 +399,7 @@ function Add-ConfigurationEntry
399399
400400 if ($FileContent -match ' \n$' -and $FileContent -notmatch ' \r\n$' )
401401 {
402- # default Linux line ending
402+ # default *nix line ending
403403 $detectedNewLineFormat = " `n "
404404 }
405405 else
Original file line number Diff line number Diff line change @@ -815,12 +815,12 @@ Setting3.Test=Value4
815815 }
816816 }
817817
818- Context ' Apply a LF (default Linux )' {
819- $linuxString = " Line1`n Line2`n "
818+ Context ' Apply a LF (default *nix )' {
819+ $nixString = " Line1`n Line2`n "
820820
821821 $result = Add-ConfigurationEntry `
822822 - Text ' Line3' `
823- - FileContent $linuxString
823+ - FileContent $nixString
824824
825825 It ' Should end with a LF' {
826826 $result -match ' \n$' | Should - BeTrue
You can’t perform that action at this time.
0 commit comments