@iebh/polyglot 4.8.5 → 4.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/modules/parse.js +4 -2
- package/package.json +1 -1
package/lib/modules/parse.js
CHANGED
|
@@ -141,7 +141,8 @@ var parse = function parse(query, options) {
|
|
|
141
141
|
if (match = /\$1/.exec(q)) {
|
|
142
142
|
// $1
|
|
143
143
|
branch.nodes.push({
|
|
144
|
-
type: 'dollarOne'
|
|
144
|
+
type: 'dollarOne',
|
|
145
|
+
content: match[1].toLowerCase()
|
|
145
146
|
});
|
|
146
147
|
offset += match[0].length;
|
|
147
148
|
q = q.substr(match[0].length);
|
|
@@ -149,7 +150,8 @@ var parse = function parse(query, options) {
|
|
|
149
150
|
} else if (match = /\$[2-9]/.exec(q)) {
|
|
150
151
|
// $2 to $9
|
|
151
152
|
branch.nodes.push({
|
|
152
|
-
type: 'dollarOtherNum'
|
|
153
|
+
type: 'dollarOtherNum',
|
|
154
|
+
content: match[1].toLowerCase()
|
|
153
155
|
});
|
|
154
156
|
offset += match[0].length;
|
|
155
157
|
q = q.substr(match[0].length);
|