+3

Javascript RegEx highlighted incorrectly with square brackets

Eduardo Cereto Carvalho 13 lat temu zaktualizowano 13 lat temu 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.