From c019cf0b600ded7c3f9ed82db35738a3117365dc Mon Sep 17 00:00:00 2001 From: vbudko Date: Tue, 7 Nov 2023 09:33:22 +0000 Subject: [PATCH 1/2] Fix pattern --- templates/output/update/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/output/update/index.jsx b/templates/output/update/index.jsx index c6f11e0..5e43c66 100644 --- a/templates/output/update/index.jsx +++ b/templates/output/update/index.jsx @@ -38,7 +38,7 @@ const UpdateTemplate = observe(() => { evt.preventDefault() const regexStringPatterns = - /(http(s)?:\/\/)?core.ac.uk\/(display|download)\/\d+|^\d+$/s + /(http(s)?:\/\/)?core.ac.uk\/(outputs|download)\/\d+|^\d+$/s // /(http(s)?:\/\/)?core.ac.uk\/(display|download\/pdf)\/\d+|^\d+$/s const regexNumberPattern = /\d+/s From 90328f259484d8acafde705298d8017fddb81487 Mon Sep 17 00:00:00 2001 From: vbudko Date: Tue, 7 Nov 2023 09:35:00 +0000 Subject: [PATCH 2/2] Fix pattern --- templates/output/update/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/output/update/index.jsx b/templates/output/update/index.jsx index 5e43c66..435b7f5 100644 --- a/templates/output/update/index.jsx +++ b/templates/output/update/index.jsx @@ -38,7 +38,7 @@ const UpdateTemplate = observe(() => { evt.preventDefault() const regexStringPatterns = - /(http(s)?:\/\/)?core.ac.uk\/(outputs|download)\/\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