From 048339a6aacd09adc187f46484f1ceb90dfef371 Mon Sep 17 00:00:00 2001
From: tobi <31960611+tsmethurst@users.noreply.github.com>
Date: Sat, 8 Jun 2024 14:32:28 +0200
Subject: [bugfix] Use re2 syntax for regex validation (#2978)

---
 web/source/settings/views/admin/http-header-permissions/detail.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'web/source/settings/views/admin/http-header-permissions/detail.tsx')

diff --git a/web/source/settings/views/admin/http-header-permissions/detail.tsx b/web/source/settings/views/admin/http-header-permissions/detail.tsx
index db92dd0eb..456f9a357 100644
--- a/web/source/settings/views/admin/http-header-permissions/detail.tsx
+++ b/web/source/settings/views/admin/http-header-permissions/detail.tsx
@@ -154,7 +154,7 @@ function PermDeets({
 	// with this regular expression prepopulated.
 	const testParams = new URLSearchParams();
 	testParams.set("regex", perm.regex);
-	testParams.set("flags", "g");
+	testParams.set("flags", "gm");
 	testParams.set("testString", testString);
 	const regexLink = `https://regex101.com/?${testParams.toString()}`;	
 
-- 
cgit v1.2.3

