mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 14:37:49 +00:00
Add back accidentally removed semicolons to escape.js.
This commit is contained in:
12
escape.js
12
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))
|
||||
|
||||
Reference in New Issue
Block a user