Skip to content

Commit 4f23a96

Browse files
committed
unescape parts of the path
1 parent fd6670e commit 4f23a96

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

jsonpointer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ var console = require("console");
22

33
var traverse = function(obj, pointer, value) {
44
// assert(isArray(pointer))
5-
var part = pointer.shift();
5+
var part = unescape(pointer.shift());
66
if(typeof obj[part] !== "undefined") {
77
if(pointer.length == 0) { // we're done
88
if(typeof value !== "undefined") { // set new value, return old value

0 commit comments

Comments
 (0)