commit d5261841be96f42521341da0413ab19f6c099c0c parent c44af1c7bd93d7f4fd8b28f6a22785acb09ca9c2 Author: Dan Stillman <dan@danstillman.com> Date: Tue, 22 Aug 2017 02:30:33 +0200 Allow substrings when filtering translator tests Diffstat:
| M | chrome/content/zotero/tools/testTranslators/translatorTester.js | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/tools/testTranslators/translatorTester.js b/chrome/content/zotero/tools/testTranslators/translatorTester.js @@ -63,7 +63,7 @@ var Zotero_TranslatorTesters = new function() { try { for(var i=0; i<translators.length; i++) { if (includeTranslators.length - && !includeTranslators.includes(translators[i].label)) continue; + && !includeTranslators.some(x => translators[i].label.includes(x))) continue; if (skipTranslators && skipTranslators[translators[i].translatorID]) continue; testers.push(new Zotero_TranslatorTester(translators[i], type)); };