From 1ff87fae84cc117e2b3ebec56084ec3c471a9599 Mon Sep 17 00:00:00 2001 From: dericksonmark <68699877+dericksonmark@users.noreply.github.com> Date: Sun, 4 May 2025 11:50:07 -0400 Subject: [PATCH 1/2] Broaden ticket URL regex for requests --- src/util/RequestsUtil.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/RequestsUtil.ts b/src/util/RequestsUtil.ts index 032c2ee..711b9b5 100644 --- a/src/util/RequestsUtil.ts +++ b/src/util/RequestsUtil.ts @@ -101,7 +101,7 @@ export class RequestsUtil { * @returns A NEW regex object every time. You have to store it as a variable if you use `exec` on it, otherwise you will encounter infinite loops. */ public static getTicketRequestRegex(): RegExp { - return new RegExp( `?`, 'g' ); + return new RegExp( `?`, 'g' ); } public static async checkTicketValidity( tickets: string[] ): Promise { From 5aaeeb07f8cfb3275512bccb53fd7ad4db5184a4 Mon Sep 17 00:00:00 2001 From: dericksonmark <68699877+dericksonmark@users.noreply.github.com> Date: Sun, 4 May 2025 12:06:58 -0400 Subject: [PATCH 2/2] Add servicedesk link format --- src/util/RequestsUtil.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/RequestsUtil.ts b/src/util/RequestsUtil.ts index 711b9b5..b61a454 100644 --- a/src/util/RequestsUtil.ts +++ b/src/util/RequestsUtil.ts @@ -101,7 +101,7 @@ export class RequestsUtil { * @returns A NEW regex object every time. You have to store it as a variable if you use `exec` on it, otherwise you will encounter infinite loops. */ public static getTicketRequestRegex(): RegExp { - return new RegExp( `?`, 'g' ); + return new RegExp( `?`, 'g' ); } public static async checkTicketValidity( tickets: string[] ): Promise {