Reverting part of f5287805b1
to eliminate catastrophic backtracking. Fixes #11.
This commit is contained in:
parent
b6cc102089
commit
ac0d834785
@ -209,7 +209,7 @@ carto.Parser = function Parser(env) {
|
||||
chunks = (function(chunks) {
|
||||
var j = 0,
|
||||
skip = /[^"'`\{\}\/]+/g,
|
||||
comment = /\/\*(?:[^*]+|\*+[^\/*])*\*+\/|\/\/.*/g,
|
||||
comment = /\/\*(?:[^*]|\*+[^\/*])*\*+\/|\/\/.*/g,
|
||||
level = 0,
|
||||
match,
|
||||
chunk = chunks[0],
|
||||
|
Loading…
Reference in New Issue
Block a user