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

gulp: Inline regex source improvement #2227

Merged

Conversation

RunDevelopment
Copy link
Member

I noticed that regexes which contained \r\n did not have their source inline correctly. E.g. /[\r\n]/.source mapped to "[\r\\n]" instead of "[\r\n]".

This fixes this minor issue.

@RunDevelopment RunDevelopment added this to the 1.20.0 milestone Mar 26, 2020
@RunDevelopment
Copy link
Member Author

If it's ok, I'll just merge this. @mAAdhaTTah @Golmote
It's just a minor fix after all.

@RunDevelopment RunDevelopment merged commit 67afc5a into PrismJS:master Mar 27, 2020
@RunDevelopment RunDevelopment deleted the gulp-inline-regex-improvement branch March 27, 2020 17:43
quentinvernot pushed a commit to TankerHQ/prismjs that referenced this pull request Sep 11, 2020
This removes more unnecessary escapes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants