From bba550fe35b99affb55a8d357e17b76559ba8f46 Mon Sep 17 00:00:00 2001 From: e551763 Date: Wed, 17 Jul 2024 12:15:24 +0200 Subject: [PATCH] chore: proper regex --- src/main/resources/webapp/pdf-exporter/js/pdf-exporter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/webapp/pdf-exporter/js/pdf-exporter.js b/src/main/resources/webapp/pdf-exporter/js/pdf-exporter.js index 2cd7345..8bd8388 100644 --- a/src/main/resources/webapp/pdf-exporter/js/pdf-exporter.js +++ b/src/main/resources/webapp/pdf-exporter/js/pdf-exporter.js @@ -49,7 +49,7 @@ function ExportContext() { } ExportContext.prototype.getProjectId = function() { - const foundValues = /"project\/(.*)\/"/.exec(this.scope); + const foundValues = /project\/(.*)\//.exec(this.scope); return foundValues !== null ? foundValues[1] : null; }