fixing lint errors

This commit is contained in:
Jamel A
2019-08-25 04:19:37 -05:00
committed by Jun Yang
parent a00945cad7
commit aa15f3dfe1
+1 -1
View File
@@ -14,7 +14,7 @@ const unescapeMap = {
}
function escape (str: string) {
return !!str ? String(str).replace(/&|<|>|"|'/g, m => escapeMap[m]) : ""
return str ? String(str).replace(/&|<|>|"|'/g, m => escapeMap[m]) : ''
}
function unescape (str: string) {