Skip to content

Rename -NormalizeNewline to -NormalizeLineEnding - #2969

Merged
nohwnd merged 1 commit into
pester:mainfrom
nohwnd:rename-normalize-lineending
Aug 11, 2026
Merged

Rename -NormalizeNewline to -NormalizeLineEnding#2969
nohwnd merged 1 commit into
pester:mainfrom
nohwnd:rename-normalize-lineending

Conversation

@nohwnd

@nohwnd nohwnd commented Aug 10, 2026

Copy link
Copy Markdown
Member

-NormalizeLineEnding is more generic and correct, the switch normalizes \r\n, \r and the Unicode line separator, not just \n. It is only in 6.1.0-rc1 so far, so renaming it now keeps the less accurate name out of a stable release.

Renamed on Should-BeString and Should-NotBeString (and the shared Test-StringEqual), tests updated. Help text is unchanged, it already described the behavior generically.

Fixes #2967

🤖

…nd Should-NotBeString

-NormalizeLineEnding is the more generic and correct name, it normalizes
\r\n, \r and the Unicode line separator, not just \n. Renaming now while
it is only in 6.1.0-rc1 avoids shipping the less accurate name in a stable
release.

Fixes pester#2967

🤖
@nohwnd
nohwnd merged commit e619aa0 into pester:main Aug 11, 2026
13 checks passed
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.

Prefer -NormalizeLineEnding as more generic and correct, but just nitpicking. Everyone will understand either way.

1 participant