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(utils): node v8 not support dotAll in regex #5608

Merged
merged 1 commit into from
Apr 26, 2019
Merged

Conversation

clarkdo
Copy link
Member

@clarkdo clarkdo commented Apr 26, 2019

As Node Compat Table, /s is not supported until Node.js 9, so try to use [\0-\uFFFF] to match new line for .

@galvez Could please verify that current fix works fine ?

Fixes #5652

@clarkdo clarkdo requested review from galvez and pi0 April 26, 2019 11:04
@clarkdo clarkdo changed the title Fix/dot all fix(utils): node v8 not support dotAll in regex Apr 26, 2019
@codecov-io
Copy link

codecov-io commented Apr 26, 2019

Codecov Report

Merging #5608 into dev will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##             dev   #5608   +/-   ##
=====================================
  Coverage   95.7%   95.7%           
=====================================
  Files         81      81           
  Lines       2633    2633           
  Branches     670     670           
=====================================
  Hits        2520    2520           
  Misses        95      95           
  Partials      18      18
Impacted Files Coverage Δ
packages/utils/src/serialize.js 92.85% <100%> (ø) ⬆️

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 3539c64...ae5b1c4. Read the comment docs.

Copy link

@galvez galvez left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

npm run dev returns Error - SyntaxError: Invalid regular expression flags
5 participants