Skip to content

Commit aa15f3d

Browse files
Jamel Aharttle
Jamel A
authored andcommitted
fixing lint errors
1 parent a00945c commit aa15f3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/builtin/filters/html.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const unescapeMap = {
1414
}
1515

1616
function escape (str: string) {
17-
return !!str ? String(str).replace(/&|<|>|"|'/g, m => escapeMap[m]) : ""
17+
return str ? String(str).replace(/&|<|>|"|'/g, m => escapeMap[m]) : ''
1818
}
1919

2020
function unescape (str: string) {

0 commit comments

Comments
 (0)