mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Consistent use (always) of parentheses in arrow functions.
This commit is contained in:
@@ -34,7 +34,7 @@ const reHasEscapedHtml = RegExp(reEscapedHtml.source)
|
||||
function unescape(string) {
|
||||
string = toString(string)
|
||||
return (string && reHasEscapedHtml.test(string))
|
||||
? string.replace(reEscapedHtml, entity => htmlUnescapes[entity])
|
||||
? string.replace(reEscapedHtml, (entity) => htmlUnescapes[entity])
|
||||
: string
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user