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

Breaking: interpret rule options as unicode regexes (fixes #11423) #11516

Merged
merged 1 commit into from
Apr 1, 2019

Conversation

not-an-aardvark
Copy link
Member

What is the purpose of this pull request? (put an "X" next to item)

[x] Changes an existing rule

Fixes #11423

What changes did you make? (Give an overview)

This updates the core rules that interpret user-provided options as regular expressions. Those rules now interpret the options as unicode regexes, which avoids some cases of unexpected behavior with astral symbols.

Is there anything you'd like reviewers to focus on?

Nothing in particular

This updates the core rules that interpret user-provided options as regular expressions. Those rules now interpret the options as unicode regexes, which avoids some cases of unexpected behavior with astral symbols.
@not-an-aardvark not-an-aardvark added enhancement This change enhances an existing feature of ESLint rule Relates to ESLint's core rules accepted There is consensus among the team that this change meets the criteria for inclusion breaking This change is backwards-incompatible labels Mar 16, 2019
@not-an-aardvark not-an-aardvark added this to Implemented, pending review in v6.0.0 Mar 16, 2019
Copy link
Member

@platinumazure platinumazure left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@mysticatea mysticatea moved this from Implemented, pending review to Ready to merge in v6.0.0 Mar 28, 2019
@not-an-aardvark not-an-aardvark merged commit 0fb5fd4 into master Apr 1, 2019
v6.0.0 automation moved this from Ready to merge to Done Apr 1, 2019
@not-an-aardvark not-an-aardvark deleted the unicode-regex-rule-options branch April 1, 2019 20:45
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Sep 29, 2019
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Sep 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion archived due to age This issue has been archived; please open a new issue for any further discussion breaking This change is backwards-incompatible enhancement This change enhances an existing feature of ESLint rule Relates to ESLint's core rules
Projects
No open projects
v6.0.0
  
Done
Development

Successfully merging this pull request may close these issues.

Interpret user-provided regexes in rule options with the u flag
3 participants