Skip to content

Reject trailing newlines in vendor directory names - #3136

Merged
DRSDavidSoft merged 1 commit into
mainfrom
maintenance/vendor-name-newline
Nov 10, 2026
Merged

DRSDavidSoft merged 1 commit into
mainfrom
maintenance/vendor-name-newline

Conversation

@DRSDavidSoft

Copy link
Copy Markdown
Contributor

The vendor-name allowlist used the .NET $ anchor, which also accepts a final newline. Use the strict end-of-string anchor and add a regression case for that invalid Windows directory name. This completes a small review finding from #3118 without changing allowed ordinary names.

Validation: all 28 build-helper cases pass on Windows PowerShell 5.1 and PowerShell 7; diff checks pass. The existing test workflow covers both shells.

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.

1 participant