Skip to content

Commit

Permalink
(chore) fix regex backtracking from prior PR
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgoebel committed Dec 9, 2021
1 parent ba806ed commit 9e33f83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/languages/javascript.js
Expand Up @@ -293,9 +293,9 @@ export default function(hljs) {
// Float32Array, OutT
/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,
// CSSFactory, CSSFactoryT
/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*|\d)*/,
/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,
// FPs, FPsT
/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*|\d)*/,
/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/,
// P
// single letters are not highlighted
// BLAH
Expand Down

0 comments on commit 9e33f83

Please sign in to comment.