Skip to content

Commit a7aa606

Browse files
committedSep 15, 2023
Every number was indexes of an array, but in our project every number is a property of object
1 parent 896ce62 commit a7aa606

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎util.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ exports.pathToText = function(path, isString) {
3636
}
3737
for (var i = 1; i < path.length; i++) {
3838
text += (i == path.length-1 && isString ? '->>' : '->')
39-
if (/^\d+$/.test(path[i]))
40-
text += path[i] //don't wrap numbers in quotes
41-
else
39+
// if (/^\d+$/.test(path[i]))
40+
// text += path[i] //don't wrap numbers in quotes
41+
// else
4242
text += '\'' + exports.stringEscape(path[i]) + '\''
4343
}
4444
return text

0 commit comments

Comments
 (0)