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

Allow unicode flag if all RegExps use it #123

Merged
merged 1 commit into from
Feb 26, 2019
Merged

Allow unicode flag if all RegExps use it #123

merged 1 commit into from
Feb 26, 2019

Conversation

tjvr
Copy link
Collaborator

@tjvr tjvr commented Feb 25, 2019

Mark the final regex as /u, if every RegExp sets the /uflag, to solve #116.

If one RegExp has the /u flag, then all of them must have it.

Strings don't need any special handling.

@tjvr tjvr requested a review from nathan February 25, 2019 22:45
@tjvr tjvr mentioned this pull request Feb 25, 2019
Copy link
Collaborator

@nathan nathan left a comment

Choose a reason for hiding this comment

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

Thanks. LGTM!

@@ -1,4 +1,3 @@

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oops!

@tjvr tjvr merged commit 7295086 into master Feb 26, 2019
@nathan nathan deleted the unicode-flags branch February 26, 2019 15:53
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