+3

Javascript RegEx highlighted incorrectly with square brackets

Eduardo Cereto Carvalho 12 jaar geleden bijgewerkt 12 jaar geleden 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.