Replace Unicode nbsp with space in source (#12576)
``` -replace [char]0xA0, [char]0x20 ```
This commit is contained in:
parent
7bc2617fe3
commit
98b95e77ea
|
@ -214,8 +214,8 @@ Describe "Line breakpoints on commands in multi-line pipelines" -Tags "CI" {
|
||||||
1..3 |
|
1..3 |
|
||||||
ForEach-Object { $_ } | sort-object |
|
ForEach-Object { $_ } | sort-object |
|
||||||
get-unique'
|
get-unique'
|
||||||
$a = New-Object -ComObject Scripting.FileSystemObject
|
$a = New-Object -ComObject Scripting.FileSystemObject
|
||||||
$f = $a.GetFile($scriptPath1)
|
$f = $a.GetFile($scriptPath1)
|
||||||
$scriptPath2 = $f.ShortPath
|
$scriptPath2 = $f.ShortPath
|
||||||
|
|
||||||
$breakpoints = Set-PSBreakpoint $scriptPath2 1,2,3 -Action { continue }
|
$breakpoints = Set-PSBreakpoint $scriptPath2 1,2,3 -Action { continue }
|
||||||
|
|
|
@ -1068,17 +1068,17 @@ function Wait-PSWinEvent
|
||||||
$All
|
$All
|
||||||
)
|
)
|
||||||
|
|
||||||
$startTime = [DateTime]::Now
|
$startTime = [DateTime]::Now
|
||||||
$lastFoundCount = 0;
|
$lastFoundCount = 0;
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
Start-Sleep -Seconds $pause
|
Start-Sleep -Seconds $pause
|
||||||
|
|
||||||
$recordsToReturn = @()
|
$recordsToReturn = @()
|
||||||
|
|
||||||
foreach ($thisRecord in (Get-WinEvent -FilterHashtable $filterHashtable -Oldest 2> $null))
|
foreach ($thisRecord in (Get-WinEvent -FilterHashtable $filterHashtable -Oldest 2> $null))
|
||||||
{
|
{
|
||||||
if($PSCmdlet.ParameterSetName -eq "ByPropertyName")
|
if($PSCmdlet.ParameterSetName -eq "ByPropertyName")
|
||||||
{
|
{
|
||||||
if ($thisRecord."$propertyName" -like "*$propertyValue*")
|
if ($thisRecord."$propertyName" -like "*$propertyValue*")
|
||||||
|
@ -1108,7 +1108,7 @@ function Wait-PSWinEvent
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($recordsToReturn.Count -gt 0)
|
if($recordsToReturn.Count -gt 0)
|
||||||
{
|
{
|
||||||
|
@ -1119,7 +1119,7 @@ function Wait-PSWinEvent
|
||||||
|
|
||||||
$lastFoundCount = $recordsToReturn.Count
|
$lastFoundCount = $recordsToReturn.Count
|
||||||
}
|
}
|
||||||
} while (([DateTime]::Now - $startTime).TotalSeconds -lt $timeout)
|
} while (([DateTime]::Now - $startTime).TotalSeconds -lt $timeout)
|
||||||
}
|
}
|
||||||
#endregion eventlog support
|
#endregion eventlog support
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ function Get-ClassCoverageData([xml.xmlelement]$element)
|
||||||
$classes = [system.collections.arraylist]::new()
|
$classes = [system.collections.arraylist]::new()
|
||||||
foreach ( $class in $element.classes.class )
|
foreach ( $class in $element.classes.class )
|
||||||
{
|
{
|
||||||
# skip classes with names like <>f__AnonymousType6`4
|
# skip classes with names like <>f__AnonymousType6`4
|
||||||
if ( $class.fullname -match "<>" ) { continue }
|
if ( $class.fullname -match "<>" ) { continue }
|
||||||
$name = $class.fullname
|
$name = $class.fullname
|
||||||
$branch = $class.summary.branchcoverage
|
$branch = $class.summary.branchcoverage
|
||||||
|
|
Loading…
Reference in a new issue