mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-25 00:25:03 +08:00
fix(onboarding): Loosen RegExp so a.com
and a.b.c.d.com
are valid
This commit is contained in:
parent
2d51f92f17
commit
2ce24bd4af
1 changed files with 2 additions and 1 deletions
|
@ -15,7 +15,8 @@ RegExpUtils =
|
||||||
emailRegex: -> new RegExp(/([a-z.A-Z0-9!#$%&'*+\-/=?^_`{|}~;:]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,63})/g)
|
emailRegex: -> new RegExp(/([a-z.A-Z0-9!#$%&'*+\-/=?^_`{|}~;:]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,63})/g)
|
||||||
|
|
||||||
# http://stackoverflow.com/a/16463966
|
# http://stackoverflow.com/a/16463966
|
||||||
domainRegex: -> new RegExp(/^(?!:\/\/)([a-zA-Z0-9]+\.)?[a-zA-Z0-9][a-zA-Z0-9-]+\.[a-zA-Z]{2,11}?$/i)
|
# http://www.regexpal.com/?fam=93928
|
||||||
|
domainRegex: -> new RegExp(/^(?!:\/\/)([a-zA-Z0-9-_]+\.)*[a-zA-Z0-9][a-zA-Z0-9-_]+\.[a-zA-Z]{2,11}?/i)
|
||||||
|
|
||||||
# https://regex101.com/r/zG7aW4/3
|
# https://regex101.com/r/zG7aW4/3
|
||||||
imageTagRegex: -> /<img\s+[^>]*src="([^"]*)"[^>]*>/g
|
imageTagRegex: -> /<img\s+[^>]*src="([^"]*)"[^>]*>/g
|
||||||
|
|
Loading…
Reference in a new issue