@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.
- package/lib/modules/tools.js +3 -1
- package/package.json +1 -1
package/lib/modules/tools.js
CHANGED
|
@@ -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
|
},
|