From 9ff4cd3af7f2c90e02994d463dd6f7107fc571d6 Mon Sep 17 00:00:00 2001 From: Christoph Walther <59056368+survellow@users.noreply.github.com> Date: Fri, 3 Nov 2023 12:21:48 +0100 Subject: [PATCH] 36 regex recognize token if not first URI parameter --- frontend/src/view/editCalendarView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/view/editCalendarView.vue b/frontend/src/view/editCalendarView.vue index fa2bfad..838fe93 100644 --- a/frontend/src/view/editCalendarView.vue +++ b/frontend/src/view/editCalendarView.vue @@ -13,7 +13,7 @@ const modules: Ref = ref(moduleStore().modules); function extractToken(token: string): string { const tokenRegex = /^[a-z0-9]{15}$/; - const tokenUriRegex = /\?token=([a-z0-9]{15})(?:&|$)/; + const tokenUriRegex = /(?:\?|&)token=([a-z0-9]{15})(?:&|$)/; if (tokenRegex.test(token)) { return token;