mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +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. */
|
/** Used to map characters to HTML entities. */
|
||||||
const htmlEscapes = {
|
const htmlEscapes = {
|
||||||
'&': '&',
|
'&': '&',
|
||||||
'<': '<',
|
'<': '<',
|
||||||
'>': '>',
|
'>': '>',
|
||||||
'"': '"',
|
'"': '"',
|
||||||
"'": '''
|
"'": '''
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Used to match HTML entities and HTML characters. */
|
/** Used to match HTML entities and HTML characters. */
|
||||||
@@ -36,7 +36,7 @@ const reHasUnescapedHtml = RegExp(reUnescapedHtml.source)
|
|||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* escape('fred, barney, & pebbles')
|
* escape('fred, barney, & pebbles')
|
||||||
* // => 'fred, barney, & pebbles'
|
* // => 'fred, barney, & pebbles'
|
||||||
*/
|
*/
|
||||||
function escape(string) {
|
function escape(string) {
|
||||||
return (string && reHasUnescapedHtml.test(string))
|
return (string && reHasUnescapedHtml.test(string))
|
||||||
|
|||||||
Reference in New Issue
Block a user