We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a43164d commit 5d06a42Copy full SHA for 5d06a42
src/parsers/path.js
@@ -82,16 +82,16 @@ function noop () {}
82
/**
83
* Determine the type of a character in a keypath.
84
*
85
- * @param {Char} char
+ * @param {Char} ch
86
* @return {String} type
87
*/
88
89
-function getPathCharType (char) {
90
- if (char === undefined) {
+function getPathCharType (ch) {
+ if (ch === undefined) {
91
return 'eof'
92
}
93
94
- var code = char.charCodeAt(0)
+ var code = ch.charCodeAt(0)
95
96
switch(code) {
97
case 0x5B: // [
@@ -100,7 +100,7 @@ function getPathCharType (char) {
100
case 0x22: // "
101
case 0x27: // '
102
case 0x30: // 0
103
- return char
+ return ch
104
105
case 0x5F: // _
106
case 0x24: // $
0 commit comments