Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #13 from adjohnson916/master

fix python typo
  • Loading branch information...
commit 4f1844dfbec428a9b3261ac84fcdc11b36636142 2 parents d8a4b62 + c438ac8
@s3u authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/jsonpath.js
View
2  lib/jsonpath.js
@@ -83,7 +83,7 @@ function jsonPath(obj, expr, arg) {
P.trace(P.eval(loc, val, path.substr(path.lastIndexOf(";")+1))+";"+x, val, path);
else if (/^\?\(.*?\)$/.test(loc)) // [?(expr)]
P.walk(loc, x, val, path, function(m,l,x,v,p) { if (P.eval(l.replace(/^\?\((.*?)\)$/,"$1"),v[m],m)) P.trace(m+";"+x,v,p); });
- else if (/^(-?[0-9]*):(-?[0-9]*):?([0-9]*)$/.test(loc)) // [start:end:step] phyton slice syntax
+ else if (/^(-?[0-9]*):(-?[0-9]*):?([0-9]*)$/.test(loc)) // [start:end:step] python slice syntax
P.slice(loc, x, val, path);
}
else
Please sign in to comment.
Something went wrong with that request. Please try again.