+3

Javascript RegEx highlighted incorrectly with square brackets

Eduardo Cereto Carvalho vor 13 Jahren aktualisiert vor 13 Jahren 0
An Example of a regex that is parsed incorrectly by the highlighter.

/^\/[^/]+test/

The text inside the brackets don't need to be escaped. But if you don't ST won't correctly highlight the regex. So it get's a little weird after the /] combination.