You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Get-M365DSCDRGComplexTypeToString resolves fancyDoubleQuotes at 480:
if ($null -ne $currentProperty) { $fancySingleQuotes = "[\u2019\u2018]" $fancyDoubleQuotes = "[\u201C\u201D]" $currentProperty = [regex]::Replace($currentProperty, $fancySingleQuotes, "''") $currentProperty = [regex]::Replace($currentProperty, $fancyDoubleQuotes, '"') }
it results in broken strings when the fancyDoubleQuotes are located inside the string. Example string:
'
WÓJCIK - VENTILATION S.A.
'
where the double-quote is a UTF8 double-quote. This causes Convert-DSCStringParamToVariable to terminate the string early : Convert-DSCStringParamToVariable: Exception calling "IndexOf" with "2" argument(s): "Index was out of range. Must be non-negative and less than or equal to the size of the collection. (Parameter 'startIndex')"
Microsoft 365 DSC Version
DEV/1.25.108.1
Which workloads are affected
other
The DSC configuration
Verbose logs showing the problem
Environment Information + PowerShell Version
The text was updated successfully, but these errors were encountered:
Description of the issue
When Get-M365DSCDRGComplexTypeToString resolves fancyDoubleQuotes at 480:
if ($null -ne $currentProperty) { $fancySingleQuotes = "[\u2019\u2018]" $fancyDoubleQuotes = "[\u201C\u201D]" $currentProperty = [regex]::Replace($currentProperty, $fancySingleQuotes, "''") $currentProperty = [regex]::Replace($currentProperty, $fancyDoubleQuotes, '"') }
it results in broken strings when the fancyDoubleQuotes are located inside the string. Example string:
'
WÓJCIK - VENTILATION S.A.
'
where the double-quote is a UTF8 double-quote. This causes Convert-DSCStringParamToVariable to terminate the string early :
Convert-DSCStringParamToVariable: Exception calling "IndexOf" with "2" argument(s): "Index was out of range. Must be non-negative and less than or equal to the size of the collection. (Parameter 'startIndex')"
Microsoft 365 DSC Version
DEV/1.25.108.1
Which workloads are affected
other
The DSC configuration
Verbose logs showing the problem
Environment Information + PowerShell Version
The text was updated successfully, but these errors were encountered: