@iebh/polyglot 4.8.0 → 4.8.2

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/data/v4.xlsx CHANGED
Binary file
package/data/~$v4.xlsx ADDED
Binary file
@@ -503,7 +503,7 @@ var parse = function parse(query, options) {
503
503
  afterWhitespace = true;
504
504
  }
505
505
  // Match field codes {{{
506
- else if (match = new RegExp("^(".concat(fieldCodes, ") *(\\[mp=[^\\]\\n]*\\])?"), "i").exec(q)) {
506
+ else if (_lodash["default"].isObject(leaf) && leaf.type !== 'mesh' && (match = new RegExp("^(".concat(fieldCodes, ") *(\\[mp=[^\\]\\n]*\\])?"), "i").exec(q))) {
507
507
  // Field specifier - PubMed syntax
508
508
  // Figure out the leaf to use (usually the last one) or the previously used group
509
509
  var useLeaf;
@@ -511,8 +511,6 @@ var parse = function parse(query, options) {
511
511
  useLeaf = leaf;
512
512
  } else if (_lodash["default"].isArray(leaf) && lastGroup) {
513
513
  useLeaf = lastGroup;
514
- } else if (_lodash["default"].isObject(leaf) && leaf.type == 'mesh') {
515
- useLeaf = leaf;
516
514
  }
517
515
  useLeaf.field = _fieldCodesParse["default"][match[1].toLowerCase()];
518
516
  if (match[2]) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iebh/polyglot",
3
- "version": "4.8.0",
3
+ "version": "4.8.2",
4
4
  "description": "IEBH-SRA tool to convert between different medical database search formats",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {