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:
Benjamin Tan
2020-12-21 21:52:57 +08:00
parent bcd0610069
commit 5aaf898a8f
3 changed files with 7 additions and 7 deletions

View File

@@ -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 || '')
}