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
merged 1 commit into from Oct 5, 2021

Conversation

RunDevelopment
Copy link
Member

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.

@github-actions
Copy link

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
@RunDevelopment RunDevelopment deleted the graphql-assertions branch October 5, 2021 21:43
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.

None yet

1 participant