don't reset raw of \x escape literals - cc @jmm

This commit is contained in:
Sebastian McKenzie 2015-07-21 14:53:05 +01:00
parent 437a201315
commit 7fa684b120

View File

@ -10,7 +10,7 @@ export var visitor = {
}
// unicode escape
if (typeof node.value === "string" && /\\[ux]/gi.test(node.raw)) {
if (typeof node.value === "string" && /\\[u]/gi.test(node.raw)) {
node.raw = undefined;
}
}