diff --git a/package.json b/package.json index 92976fd..893a16a 100644 --- a/package.json +++ b/package.json @@ -62,8 +62,7 @@ "@typescript-eslint/member-ordering": "off", "no-redeclare": "off", "unicorn/string-content": "off", - "unicorn/better-regex": "off", - "unicorn/prefer-number-properties": "off" + "unicorn/better-regex": "off" } } } diff --git a/source/templates.js b/source/templates.js index b130949..bfdaba8 100644 --- a/source/templates.js +++ b/source/templates.js @@ -22,11 +22,11 @@ function unescape(c) { const bracket = c[1] === '{'; if ((u && !bracket && c.length === 5) || (c[0] === 'x' && c.length === 3)) { - return String.fromCharCode(parseInt(c.slice(1), 16)); + return String.fromCharCode(Number.parseInt(c.slice(1), 16)); } if (u && bracket) { - return String.fromCodePoint(parseInt(c.slice(2, -1), 16)); + return String.fromCodePoint(Number.parseInt(c.slice(2, -1), 16)); } return ESCAPES.get(c) || c;