From e1dac6d0c888e67c3e86e7ed8557094b2873d720 Mon Sep 17 00:00:00 2001 From: nathanlesage Date: Tue, 15 Dec 2020 20:38:17 +0100 Subject: [PATCH] Miniscule after-fix --- source/common/util/extract-bibtex-attachments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/common/util/extract-bibtex-attachments.js b/source/common/util/extract-bibtex-attachments.js index 3f68f53107..65d7823329 100644 --- a/source/common/util/extract-bibtex-attachments.js +++ b/source/common/util/extract-bibtex-attachments.js @@ -41,7 +41,7 @@ module.exports = function (fileContents, baseDir = '') { let f = property.value[0].value.split(';') f = f.map(elem => { // Extract the file paths - if (elem.indexOf(':') > 0) { + if (elem.indexOf(':') >= 0) { return elem.split(':')[1] } else { return elem