We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81adf6a commit 8b3aad9Copy full SHA for 8b3aad9
modules/markup/html.go
@@ -63,7 +63,7 @@ var (
63
// well as the HTML5 spec:
64
// http://spec.commonmark.org/0.28/#email-address
65
// https://html.spec.whatwg.org/multipage/input.html#e-mail-state-(type%3Demail)
66
- emailRegex = regexp.MustCompile("[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*")
+ emailRegex = regexp.MustCompile("[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9]{2,}(?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+")
67
68
linkRegex, _ = xurls.StrictMatchingScheme("https?://")
69
)
0 commit comments