From 5f584e1014b6f22e2ec14091ba0bec665612fa4d Mon Sep 17 00:00:00 2001 From: Tarrgon <61888458+Tarrgon@users.noreply.github.com> Date: Wed, 16 Jul 2025 10:50:58 -0400 Subject: [PATCH] Fix square brackets in urls --- src/utils/ticket-events.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/ticket-events.ts b/src/utils/ticket-events.ts index fab3eb0..2cda680 100644 --- a/src/utils/ticket-events.ts +++ b/src/utils/ticket-events.ts @@ -78,7 +78,7 @@ const linkReplacers = [ } ]; -const urlRegex = new RegExp('"((?:[\\S]| )+?)":\\[?((?:https?:\\/\\/[\\w\\d.\\/?=#&%]+)|\\/[\\w\\d.\\/?=#]+)\\]?', 'gi'); +const urlRegex = new RegExp('"((?:[\\S]| )+?)":\\[?((?:https?:\\/\\/[\\w\\d.\\/?=#&%]+)|\\/[\\w\\d.\\/?=#\\[\\]]+)\\]?', 'gi'); const MAX_DESCRIPTION_LENGTH = 500;