json-logic-js
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -84,2 +84,10 @@ /* globals define,module */ | ||
}, | ||
"substr":function(source, start, end) { | ||
if(end < 0){ | ||
// JavaScript doesn't support negative end, this emulates PHP behavior | ||
var temp = String(source).substr(start); | ||
return temp.substr(0, temp.length + end); | ||
} | ||
return String(source).substr(start, end); | ||
}, | ||
"+": function() { | ||
@@ -86,0 +94,0 @@ return Array.prototype.reduce.call(arguments, function(a, b) { |
{ | ||
"name": "json-logic-js", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Build complex rules, serialize them as JSON, and execute them in JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "logic.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
65870
12
822