@iebh/polyglot 5.1.5 → 5.1.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.
@@ -209,7 +209,6 @@ var tools = {
209
209
  case 'Cochrane Library':
210
210
  if (space) {
211
211
  text = tools.wildCardCochrane(text, settings.highlighting);
212
- text = text.replace(/"\b(\w+)\b"\s+NEXT/g, '$1 NEXT');
213
212
  }
214
213
  replaceObj = {
215
214
  // '$': settings.highlighting
@@ -310,6 +309,9 @@ var tools = {
310
309
  break;
311
310
  }
312
311
  text = tools.multiReplace(text, replaceObj);
312
+ if (engine == 'Cochrane Library') {
313
+ text = text.replace(/"(\w+)"\s+NEXT/gi, '$1 NEXT');
314
+ }
313
315
  }
314
316
  return engine == 'Embase (Elsevier)' ? space ? settings.highlighting ? "<font color='DarkBlue'>'" + text + "'</font>" : "'" + text + "'" : text : space ? settings.highlighting ? '<font color="DarkBlue">"' + text + '"</font>' : '"' + text + '"' : text;
315
317
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iebh/polyglot",
3
- "version": "5.1.5",
3
+ "version": "5.1.7",
4
4
  "description": "IEBH-SRA tool to convert between different medical database search formats",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {