From 447650f21c79567b962a96e0afd553a0f92667a4 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Sat, 26 Nov 2022 17:36:59 +0000 Subject: [PATCH] Remove @ from regex because idk what it was doing there in the first place --- routers/web/admin/auths.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/web/admin/auths.go b/routers/web/admin/auths.go index f53a1649f0..b79b317555 100644 --- a/routers/web/admin/auths.go +++ b/routers/web/admin/auths.go @@ -39,7 +39,7 @@ const ( ) var ( - separatorAntiPattern = regexp.MustCompile(`[^\w-\.@]`) + separatorAntiPattern = regexp.MustCompile(`[^\w-\.]`) langCodePattern = regexp.MustCompile(`^[a-z]{2}-[A-Z]{2}$`) )