Skip to content

Commit 79d2218

Browse files
FIxed some cases of quadratic worst-case runtime (#2922)
1 parent fc2a333 commit 79d2218

File tree

144 files changed

+246
-223
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+246
-223
lines changed

components/prism-abnf.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
alias: 'operator'
2626
},
2727
'definition': {
28-
pattern: /(^[ \t]*)(?:[a-z][\w-]*|<[^>\r\n]*>)(?=\s*=)/m,
28+
pattern: /(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,
2929
lookbehind: true,
3030
alias: 'keyword',
3131
inside: {
@@ -41,7 +41,7 @@
4141
}
4242
},
4343
'rule': {
44-
pattern: /(^|[^<\w-])[a-z][\w-]*|<[^>\r\n]*>/i,
44+
pattern: /(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,
4545
lookbehind: true,
4646
inside: {
4747
'punctuation': /<|>/

components/prism-abnf.min.js

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

components/prism-apacheconf.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)