Was troubleshooting an issue in discord and wrote some tests to verify things were parsed correctly. The orignal regex was missing leading and trailing period detection. Go has a built in function for parsing/validating email addresses based on the RFC that doesn't use regex, and performs slightly faster in a benchmark.
ERROR
appview/email/email.go
ERROR
appview/email/email.go
Failed to calculate interdiff for this file.
ERROR
appview/email/email_test.go
ERROR
appview/email/email_test.go
Failed to calculate interdiff for this file.