@iebh/polyglot 4.9.2 → 4.9.3

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.
@@ -179,20 +179,6 @@ var parse = function parse(query, options) {
179
179
  });
180
180
  offset += match[1].length;
181
181
  q = q.substr(match[1].length);
182
- } else if (match = /(\$1)\b/i.exec(q)) {
183
- // $1
184
- branch.nodes.push({
185
- type: 'dollarOne',
186
- ref: [match[2]],
187
- cond: match[2] ? match[2].toUpperCase() : '',
188
- nodes: []
189
- });
190
- var index = q.indexOf(match[0]);
191
- if (index !== -1) {
192
- offset += index + 2;
193
- q = q.slice(0, index) + q.slice(index + 2);
194
- cropString = false;
195
- }
196
182
  } else if (/^\(/.test(q)) {
197
183
  var newGroup = {
198
184
  type: 'group',
@@ -589,6 +575,20 @@ var parse = function parse(query, options) {
589
575
  offset += match[0].length;
590
576
  q = q.substr(match[0].length);
591
577
  cropString = false;
578
+ } else if (match = /(\$1)\b/i.exec(q)) {
579
+ // $1
580
+ branch.nodes.push({
581
+ type: 'dollarOne',
582
+ ref: [match[2]],
583
+ cond: match[2] ? match[2].toUpperCase() : '',
584
+ nodes: []
585
+ });
586
+ var index = q.indexOf(match[0]);
587
+ if (index !== -1) {
588
+ offset += index + 2;
589
+ q = q.slice(0, index) + q.slice(index + 2);
590
+ cropString = false;
591
+ }
592
592
  }
593
593
  // }}}
594
594
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iebh/polyglot",
3
- "version": "4.9.2",
3
+ "version": "4.9.3",
4
4
  "description": "IEBH-SRA tool to convert between different medical database search formats",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {