back interdiff of round #1 and #0

appview/email: Replace regex check with mail.ParseAddress. Add unit tests. #839

merged
opened by evan.jarrett.net targeting master from evan.jarrett.net/core: email-verify

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.

files
appview
ERROR
appview/email/email.go

Failed to calculate interdiff for this file.

ERROR
appview/email/email_test.go

Failed to calculate interdiff for this file.