Skip to content

Commit

Permalink
Add back accidentally removed semicolons to escape.js.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Jul 2, 2019
1 parent 8bc17fe commit dce7fcc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions escape.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/** Used to map characters to HTML entities. */
const htmlEscapes = {
'&': '&amp',
'<': '&lt',
'>': '&gt',
'"': '&quot',
"'": '&#39'
'&': '&amp;',
'<': '&lt;',
'>': '&gt;',
'"': '&quot;',
"'": '&#39;'
}

/** Used to match HTML entities and HTML characters. */
Expand Down Expand Up @@ -36,7 +36,7 @@ const reHasUnescapedHtml = RegExp(reUnescapedHtml.source)
* @example
*
* escape('fred, barney, & pebbles')
* // => 'fred, barney, &amp pebbles'
* // => 'fred, barney, &amp; pebbles'
*/
function escape(string) {
return (string && reHasUnescapedHtml.test(string))
Expand Down

0 comments on commit dce7fcc

Please sign in to comment.