Skip to content

Standardize syntax in 'ReplaceOperator.Tests.ps1' - #7963

Merged
Dongbo Wang (daxian-dbw) merged 2 commits into
PowerShell:masterfrom
sethvs:replace
Oct 9, 2018
Merged

Dongbo Wang (daxian-dbw) merged 2 commits into
PowerShell:masterfrom
sethvs:replace

Conversation

@sethvs

Copy link
Copy Markdown
Contributor

PR Summary

  • Change BeExactly parameter to -BeExactly
  • Change $_[0] to $_ in the Replace operator can take a ScriptBlock in place of a substitution string test since it is scalar System.Text.RegularExpressions.Match object and not an array.

PR Checklist

@TravisEz13 Travis Plunk (TravisEz13) changed the title Fix 'ReplaceOperator.Tests.ps1' Standardize syntax in 'ReplaceOperator.Tests.ps1' Oct 8, 2018
@daxian-dbw
Dongbo Wang (daxian-dbw) merged commit 3b31608 into PowerShell:master Oct 9, 2018
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants