|
|
@ -63,7 +63,7 @@ var ( |
|
|
|
// well as the HTML5 spec:
|
|
|
|
// well as the HTML5 spec:
|
|
|
|
// http://spec.commonmark.org/0.28/#email-address
|
|
|
|
// http://spec.commonmark.org/0.28/#email-address
|
|
|
|
// https://html.spec.whatwg.org/multipage/input.html#e-mail-state-(type%3Demail)
|
|
|
|
// https://html.spec.whatwg.org/multipage/input.html#e-mail-state-(type%3Demail)
|
|
|
|
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])?)+") |
|
|
|
|
|
|
|
|
|
|
|
linkRegex, _ = xurls.StrictMatchingScheme("https?://") |
|
|
|
linkRegex, _ = xurls.StrictMatchingScheme("https?://") |
|
|
|
) |
|
|
|
) |
|
|
|