We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9225ff0 commit 0dc8f4bCopy full SHA for 0dc8f4b
src/System.Management.Automation/FormatAndOutput/DefaultFormatters/PowerShellCore_format_ps1xml.cs
@@ -1087,15 +1087,8 @@ function Get-ConciseViewPositionMessage {
1087
1088
if ($useTargetObject) {
1089
$line = $_.TargetObject.LineText.Trim()
1090
- $indexOfShould = $line.IndexOf('should',[System.StringComparison]::OrdinalIgnoreCase)
1091
- if ($indexOfShould -ge 0) {
1092
- $offsetLength = 'should'.Length
1093
- $offsetInLine = $indexOfShould
1094
- }
1095
- else {
1096
- $offsetLength = 0
1097
- $offsetInLine = 0
1098
+ $offsetLength = 0
+ $offsetInLine = 0
1099
}
1100
else {
1101
$line = $myinv.Line
0 commit comments