Skip to content

Commit

Permalink
FIxed some cases of quadratic worst-case runtime (#2922)
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment committed Jun 8, 2021
1 parent fc2a333 commit 79d2218
Show file tree
Hide file tree
Showing 144 changed files with 246 additions and 223 deletions.
4 changes: 2 additions & 2 deletions components/prism-abnf.js
Expand Up @@ -25,7 +25,7 @@
alias: 'operator'
},
'definition': {
pattern: /(^[ \t]*)(?:[a-z][\w-]*|<[^>\r\n]*>)(?=\s*=)/m,
pattern: /(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,
lookbehind: true,
alias: 'keyword',
inside: {
Expand All @@ -41,7 +41,7 @@
}
},
'rule': {
pattern: /(^|[^<\w-])[a-z][\w-]*|<[^>\r\n]*>/i,
pattern: /(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,
lookbehind: true,
inside: {
'punctuation': /<|>/
Expand Down
2 changes: 1 addition & 1 deletion components/prism-abnf.min.js

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

2 changes: 1 addition & 1 deletion components/prism-apacheconf.js

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

0 comments on commit 79d2218

Please sign in to comment.