8000 Fix Lisp exponential string pattern (#1763) · PrismJS/prism@5bd182c · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Dismiss alert

Commit 5bd182c

Browse files
RunDevelopmentmAAdhaTTah
authored andcommitted
Fix Lisp exponential string pattern (#1763)
This PR fixes #1762 by fixing the `string` pattern which sometimes fails in exponential time.
1 parent ce9616a commit 5bd182c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/prism-lisp.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
},
3333
comment: /;.*/,
3434
string: {
35-
pattern: /"(?:[^"\\]*|\\.)*"/,
35+
pattern: /"(?:[^"\\]|\\.)*"/,
3636
greedy: true,
3737
inside: {
3838
argument: /[-A-Z]+(?=[.,\s])/,

components/prism-lisp.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
0