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

Remove some conditionals used for regex literals #17

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

jtbandes
Copy link
Owner

Relates to #16 / cc @slevithan

The conditional negative lookaheads were conditional based on absence of # in the opening delimiter. This can be simplified by including / in the negative lookaheads and moving them before the opening delimiter.

(The comment rule seems like it is not actually necessary since #comment is given a higher priority, but I kept it for good measure.)

@slevithan
Copy link

Nice change that makes this easier to understand.

@jtbandes jtbandes merged commit d0ccac7 into main Dec 30, 2024
1 check passed
@jtbandes jtbandes deleted the reduce-conditionals branch December 30, 2024 03:17
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.

2 participants