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

prefer-starts-ends-with: Fix bug with m flag #721

Merged

Conversation

fisker
Copy link
Collaborator

@fisker fisker commented May 7, 2020

/^b/.test('a\nb')
false

/^b/m.test('a\nb')
true

When regex has m flag, should not be a problem.

@sindresorhus sindresorhus merged commit 83bbabc into sindresorhus:master May 7, 2020
@fisker fisker deleted the prefer-starts-ends-with-m-flag branch May 7, 2020 08:25
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.

None yet

2 participants