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

fix(lexer): fix wrong error when using regex flag s together with m or y #211

Merged
merged 1 commit into from Mar 23, 2022

Conversation

3cp
Copy link
Member

@3cp 3cp commented Mar 18, 2022

closes #202

Multiline = 0b00100,
Unicode = 0b10000,
Sticky = 0b01000,
DotAll = 0b1100
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got no idea why the previous bit-mask for DotAll 0b1100 is an union of Sticky 0b01000 and Multiline 0b00100.
It doesn't make any sense.

@3cp 3cp requested a review from aladdin-add March 18, 2022 22:26
@3cp
Copy link
Member Author

3cp commented Mar 23, 2022

Thx.

@3cp 3cp merged commit b6a7cf6 into master Mar 23, 2022
@3cp 3cp deleted the fix-regex-flags branch March 23, 2022 04:36
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.

Duplicate regular expression flag
2 participants