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 to remove last return statement #2460 #2613

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

knittl
Copy link

@knittl knittl commented Oct 25, 2020

Rewrite regex with character group used as negative lookahead. Instead,
be explicit about what we want to match: the last return keyword in a
string, followed by anything but newlines and ending with any number of
trailing whitespace, semicolons, or closing parentheses or braces.

@knittl knittl force-pushed the bugfix/2460-build-regex branch 3 times, most recently from ba40fdb to 1ff59ab Compare October 31, 2020 00:29
@codecov
Copy link

codecov bot commented Oct 31, 2020

Codecov Report

Merging #2613 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2613   +/-   ##
=======================================
  Coverage   95.18%   95.18%           
=======================================
  Files           5        5           
  Lines         166      166           
=======================================
  Hits          158      158           
  Misses          8        8           
Impacted Files Coverage Δ
lib/build.js 90.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 94592f2...b69ee43. Read the comment docs.

Rewrite regex with character group used as negative lookahead. Instead,
be explicit about what we want to match: the last return keyword in a
string, followed by anything but newlines and ending with any number of
trailing whitespace, semicolons, or closing parentheses or braces.
@rejas rejas added this to the Modernizr v4.0 milestone Jan 30, 2021
@rejas rejas modified the milestones: Modernizr v4.0, Modernizr v5.0 Jul 21, 2023
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