Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If a shebang already exists when adding a preamble, preserve it. (Cherry-pick of #19133) #19138

Merged
merged 1 commit into from May 24, 2023

Conversation

WorkerPants
Copy link
Member

Currently if a file contains a shebang but no preamble, the premable linter will break the shebang by prepending the preamble.

This change adjusts the regex match to preserve the existing shebang.

)

Currently if a file contains a shebang but no preamble, the premable
linter will break the shebang by prepending the preamble.

This change adjusts the regex match to preserve the existing shebang.
@WorkerPants WorkerPants added the category:bugfix Bug fixes for released features label May 24, 2023
@stuhood stuhood merged commit 11b66a8 into 2.17.x May 24, 2023
25 checks passed
@stuhood stuhood deleted the cherry-pick-19133-to-2.17.x branch May 24, 2023 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:bugfix Bug fixes for released features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants