@bonniernews/local-esi
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -118,4 +118,4 @@ /* eslint-disable camelcase */ | ||
if (node.operator === "%") return left % right; | ||
if (node.operator === "has") return left.indexOf(right) > -1; | ||
if (node.operator === "has_i") return left.toLowerCase().indexOf(right.toLowerCase()) > -1; | ||
if (node.operator === "has") return castString(left).indexOf(castString(right)) > -1; | ||
if (node.operator === "has_i") return castString(left).toLowerCase().indexOf(castString(right).toLowerCase()) > -1; | ||
if (node.operator === "matches") { | ||
@@ -207,1 +207,5 @@ if (!left) { | ||
} | ||
function castString(any) { | ||
return typeof any === "undefined" ? "" : String(any); | ||
} |
{ | ||
"name": "@bonniernews/local-esi", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "Local Edge Side Includes parser", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50698
16
1582