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(regex): check global flag is present #295

Merged
merged 1 commit into from
Oct 14, 2019

Conversation

ericzon
Copy link
Collaborator

@ericzon ericzon commented Oct 12, 2019

Pull Request Template

PR Checklist

  • I have run npm test locally and all tests are passing.
  • I have added/updated tests for any new behavior.

PR Description

Passing a regex without 'g' flag to addRegex results in an infinite loop. This checks that and fix the incoming regex.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 1011

  • 3 of 3 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.002%) to 96.473%

Totals Coverage Status
Change from base Build 258: 0.002%
Covered Lines: 3802
Relevant Lines: 3882

💛 - Coveralls

@coveralls
Copy link

coveralls commented Oct 12, 2019

Pull Request Test Coverage Report for Build 1011

  • 3 of 3 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.002%) to 96.473%

Totals Coverage Status
Change from base Build 258: 0.002%
Covered Lines: 7604
Relevant Lines: 7764

💛 - Coveralls

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.

4 participants