@iebh/polyglot 4.8.6 → 4.8.7

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.
@@ -142,7 +142,7 @@ var parse = function parse(query, options) {
142
142
  // $1
143
143
  branch.nodes.push({
144
144
  type: 'dollarOne',
145
- content: match[1].toLowerCase()
145
+ content: match[0].toLowerCase()
146
146
  });
147
147
  offset += match[0].length;
148
148
  q = q.substr(match[0].length);
@@ -151,7 +151,7 @@ var parse = function parse(query, options) {
151
151
  // $2 to $9
152
152
  branch.nodes.push({
153
153
  type: 'dollarOtherNum',
154
- content: match[1].toLowerCase()
154
+ content: match[0].toLowerCase()
155
155
  });
156
156
  offset += match[0].length;
157
157
  q = q.substr(match[0].length);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iebh/polyglot",
3
- "version": "4.8.6",
3
+ "version": "4.8.7",
4
4
  "description": "IEBH-SRA tool to convert between different medical database search formats",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {