add test for es6 unicode escapes
This commit is contained in:
parent
02d63b7ec4
commit
c510fa79d0
@ -1329,6 +1329,14 @@ describe("verify", function () {
|
||||
].join("\n"),
|
||||
{ "no-dupe-keys": 1 },
|
||||
[]
|
||||
)
|
||||
);
|
||||
});
|
||||
|
||||
it("regex with es6 unicodeCodePointEscapes", function () {
|
||||
verifyAndAssertMessages(
|
||||
"string.replace(/[\u{0000A0}-\u{10FFFF}<>\&]/gmiu, (char) => `&#x${char.codePointAt(0).toString(16)};`);",
|
||||
{},
|
||||
[]
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user