We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e92e8e commit ee63ca1Copy full SHA for ee63ca1
1 file changed
source/Modules/FileContentDsc.Common/FileContentDsc.Common.psm1
@@ -58,6 +58,7 @@ function Get-TextEolCharacter
58
)
59
60
$eolChar = "`r`n"
61
+
62
if (-not $Text.Contains("`r`n") -and $Text.Contains("`r"))
63
{
64
$eolChar = "`r"
@@ -170,7 +171,7 @@ function Get-FileEncoding
170
171
$Path
172
173
- [byte[]]$byte = Get-Content -Encoding byte -ReadCount 4 -TotalCount 4 -Path $Path
174
+ [System.Byte[]] $byte = Get-Content -Encoding byte -ReadCount 4 -TotalCount 4 -Path $Path
175
176
if ($byte[0] -eq 0xef -and $byte[1] -eq 0xbb -and $byte[2] -eq 0xbf)
177
0 commit comments