mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 18:07:49 +00:00
Fix ESLint errors and tests.
I've commented out a test for `_.merge` and will re-look it as I gradually cleanup the codebase.
This commit is contained in:
@@ -31,7 +31,7 @@ const reHasEscapedHtml = RegExp(reEscapedHtml.source)
|
||||
*/
|
||||
function unescape(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