Skip to content

Commit

Permalink
fix(livescript) fix potential catastrophic backtracking
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgoebel committed Nov 18, 2020
1 parent 0a2624a commit dc45f7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/languages/livescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function(hljs) {
{
// regex can't start with space to parse x / 2 / 3 as two divisions
// regex can't start with *, and it supports an "illegal" in the main mode
begin: /\/(?![ *])(\\\/|.)*?\/[gim]*(?=\W)/
begin: /\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/
}
]
},
Expand Down

0 comments on commit dc45f7c

Please sign in to comment.