add test for es6 unicode escapes

This commit is contained in:
Henry Zhu 2015-12-29 13:44:12 -05:00
parent 02d63b7ec4
commit c510fa79d0

View File

@ -1329,6 +1329,14 @@ describe("verify", function () {
].join("\n"), ].join("\n"),
{ "no-dupe-keys": 1 }, { "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)};`);",
{},
[]
);
}); });
}); });