@iebh/polyglot 4.9.5 → 4.9.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 +3 -0
- package/package.json +1 -1
package/lib/modules/parse.js
CHANGED
|
@@ -138,6 +138,9 @@ var parse = function parse(query, options) {
|
|
|
138
138
|
while (q.length) {
|
|
139
139
|
var cropString = true; // Whether to remove one charcater from the beginning of the string (set to false if the lexical match handles this behaviour itself)
|
|
140
140
|
var match;
|
|
141
|
+
if (match = /(\$[1-9])\b/i.exec(q)) {
|
|
142
|
+
q = q.replace(/([^ \t])(\$[1-9])\b/g, '$1 $2');
|
|
143
|
+
}
|
|
141
144
|
if (match = /^(\$1)\b/i.exec(q)) {
|
|
142
145
|
// $1
|
|
143
146
|
branch.nodes.push({
|