From dce7fccbb68c469565ced5ccf41fd5028e1ab730 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 2 Jul 2019 16:08:37 -0700 Subject: [PATCH] Add back accidentally removed semicolons to escape.js. --- escape.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/escape.js b/escape.js index 6392bda41..fa2ed605a 100644 --- a/escape.js +++ b/escape.js @@ -1,10 +1,10 @@ /** Used to map characters to HTML entities. */ const htmlEscapes = { - '&': '&', - '<': '<', - '>': '>', - '"': '"', - "'": ''' + '&': '&', + '<': '<', + '>': '>', + '"': '"', + "'": ''' } /** Used to match HTML entities and HTML characters. */ @@ -36,7 +36,7 @@ const reHasUnescapedHtml = RegExp(reUnescapedHtml.source) * @example * * escape('fred, barney, & pebbles') - * // => 'fred, barney, & pebbles' + * // => 'fred, barney, & pebbles' */ function escape(string) { return (string && reHasUnescapedHtml.test(string))