Skip to content

Commit

Permalink
Merge pull request #52 from FabienTschanz/fix/line-endings
Browse files Browse the repository at this point in the history
Update line ending detection on configuration name replace
  • Loading branch information
NikCharlebois authored Sep 11, 2024
2 parents ee0c2d3 + 64dec6d commit e298f0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/DSCParser/Modules/DSCParser.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ function ConvertTo-DSCObject
}
if ($start -ge 0)
{
$end = $Content.IndexOf("`r`n", $start)
$end = $Content.IndexOf("`n", $start)
if ($end -gt $start)
{
$start = $Content.ToLower().IndexOf(' ', $start+1)
Expand Down

0 comments on commit e298f0b

Please sign in to comment.