diff options
Diffstat (limited to 'tools/eslint/lib/util/xml-escape.js')
-rw-r--r-- | tools/eslint/lib/util/xml-escape.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/eslint/lib/util/xml-escape.js b/tools/eslint/lib/util/xml-escape.js index 2c3abd39d5..698abaf38e 100644 --- a/tools/eslint/lib/util/xml-escape.js +++ b/tools/eslint/lib/util/xml-escape.js @@ -15,7 +15,7 @@ * @private */ module.exports = function(s) { - return ("" + s).replace(/[<>&"'\x00-\x1F\x7F\u0080-\uFFFF]/g, function(c) { // eslint-disable-line no-control-regex + return (`${s}`).replace(/[<>&"'\x00-\x1F\x7F\u0080-\uFFFF]/g, function(c) { // eslint-disable-line no-control-regex switch (c) { case "<": return "<"; @@ -28,7 +28,7 @@ module.exports = function(s) { case "'": return "'"; default: - return "&#" + c.charCodeAt(0) + ";"; + return `&#${c.charCodeAt(0)};`; } }); }; |