mirror of
https://github.com/harttle/liquidjs.git
synced 2026-10-03 00:55:13 -07:00
fixing lint errors
This commit is contained in:
@@ -14,7 +14,7 @@ const unescapeMap = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function escape (str: string) {
|
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) {
|
function unescape (str: string) {
|
||||||
|
|||||||
Reference in New Issue
Block a user