I am wondering why does the Unicode for backtick match on backslash?
In JavaScript this code:
const regex = /[/u0060]/g
const sentence = 'it should match only on this ` not or /';
console.log(sentence.match(regex));
matches on:
> Array ["`", "/"]
The Unicode character for backslash/
is U+002F and the Unicode character for a backtick or “grave accent” ` is U+0060.
In here it properly distinguishes between the two characters but in JavaScript it seems to not be able to differentiate.