mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 09:47:48 +00:00
Consistent use (always) of parentheses in arrow functions.
This commit is contained in:
@@ -43,7 +43,7 @@ const reHasUnescapedHtml = RegExp(reUnescapedHtml.source)
|
||||
function escape(string) {
|
||||
string = toString(string)
|
||||
return (string && reHasUnescapedHtml.test(string))
|
||||
? string.replace(reUnescapedHtml, chr => htmlEscapes[chr])
|
||||
? string.replace(reUnescapedHtml, (chr) => htmlEscapes[chr])
|
||||
: string
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user