@iebh/polyglot 4.9.5 → 4.9.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.
@@ -138,6 +138,12 @@ 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
+ }
144
+ if (match = /\bOR\b/i.exec(q)) {
145
+ q = q.replace(/(?<!^)(\w)(?=OR\b)/g, '$1 ');
146
+ }
141
147
  if (match = /^(\$1)\b/i.exec(q)) {
142
148
  // $1
143
149
  branch.nodes.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iebh/polyglot",
3
- "version": "4.9.5",
3
+ "version": "4.9.7",
4
4
  "description": "IEBH-SRA tool to convert between different medical database search formats",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {