Skip to content

Commit

Permalink
Fix Lisp exponential string pattern (#1763)
Browse files Browse the repository at this point in the history
This PR fixes #1762 by fixing the `string` pattern which sometimes fails in exponential time.
  • Loading branch information
RunDevelopment authored and mAAdhaTTah committed Feb 26, 2019
1 parent ce9616a commit 5bd182c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/prism-lisp.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
comment: /;.*/,
string: {
pattern: /"(?:[^"\\]*|\\.)*"/,
pattern: /"(?:[^"\\]|\\.)*"/,
greedy: true,
inside: {
argument: /[-A-Z]+(?=[.,\s])/,
Expand Down
2 changes: 1 addition & 1 deletion components/prism-lisp.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5bd182c

Please sign in to comment.