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

GraphQl: Optimized regexes #3136

merged 1 commit into from Oct 5, 2021


Copy link

@RunDevelopment RunDevelopment commented Oct 5, 2021

This adds a few word boundary assertions for better worst-case performance and removes the useless (?=!?.*$) assertion.

Since this is a small change, I'll just merge this after all tests pass.

Copy link

@github-actions github-actions bot commented Oct 5, 2021

JS File Size Changes (gzipped)

A total of 1 files have changed, with a combined diff of -5 B (-0.4%).

file master pull size diff % diff
components/prism-graphql.min.js 1.14 KB 1.13 KB -5 B -0.4%

Generated by 🚫 dangerJS against b103b07

@RunDevelopment RunDevelopment merged commit 8494519 into PrismJS:master Oct 5, 2021
11 checks passed
@RunDevelopment RunDevelopment deleted the graphql-assertions branch Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

Successfully merging this pull request may close these issues.

None yet

1 participant