Remove @ from regex because idk what it was doing there in the first place

This commit is contained in:
Anthony Wang 2022-11-26 17:36:59 +00:00
parent d22dab748f
commit 447650f21c
No known key found for this signature in database
GPG Key ID: 42A5B952E6DD8D38
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ const (
)
var (
separatorAntiPattern = regexp.MustCompile(`[^\w-\.@]`)
separatorAntiPattern = regexp.MustCompile(`[^\w-\.]`)
langCodePattern = regexp.MustCompile(`^[a-z]{2}-[A-Z]{2}$`)
)