From aff081c7e20007b8588e1bbc0204461384206e73 Mon Sep 17 00:00:00 2001 From: vbudko Date: Wed, 6 Dec 2023 15:52:40 +0000 Subject: [PATCH] Update regexp --- templates/output/update/index.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/output/update/index.jsx b/templates/output/update/index.jsx index 0aa3a1d..3e33973 100644 --- a/templates/output/update/index.jsx +++ b/templates/output/update/index.jsx @@ -38,7 +38,8 @@ const UpdateTemplate = observe(() => { evt.preventDefault() const regexStringPatterns = - /(http(s)?:\/\/)?core.ac.uk\/(outputs|display|download)\/\d+|^\d+$/s + /(http(s)?:\/\/)?core.ac.uk\/(outputs|display|download|download\/pdf)\/\d+|^\d+$/s + // /(http(s)?:\/\/)?core.ac.uk\/(outputs|display|download)\/\d+|^\d+$/s // /(http(s)?:\/\/)?core.ac.uk\/(display|download\/pdf)\/\d+|^\d+$/s const regexNumberPattern = /\d+/s