Skip to content

Remove redundant pieces of the IGNORE_COMMENT_REGEX#4226

Open
oprypin wants to merge 1 commit into
facebook:mainfrom
oprypin:patch-1
Open

Remove redundant pieces of the IGNORE_COMMENT_REGEX#4226
oprypin wants to merge 1 commit into
facebook:mainfrom
oprypin:patch-1

Conversation

@oprypin

@oprypin oprypin commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Summary

This is a no-op refactor.

Each branch of this regex contains a copy of the construct \s*(?:;\s*)?[^#]*, but the last part of it already covers everything that the other parts could possibly cover, so we remove them.

Test Plan

No functionality is changed, so if all preexisting tests pass, that should be sufficient.
And in my brief manual usage of pyrefly suppress I didn't encounter any issues.

This is a no-op refactor.

Each branch of this regex contains a copy of the construct `\s*(?:;\s*)?[^#]*`, but the last part of it already covers everything that the other parts could possibly cover, so we remove them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants