mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-25 08:35:16 +08:00
parent
69c7a7aea7
commit
b72efe944a
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ RegExpUtils =
|
|||
|
||||
mailspringCommandRegex: -> new RegExp(/mailspring:\S+/i)
|
||||
|
||||
# Test cases: https://regex101.com/r/pD7iS5/3
|
||||
# Test cases: https://regex101.com/r/pD7iS5/4
|
||||
urlRegex: ({matchEntireString} = {}) ->
|
||||
commonTlds = ['com', 'org', 'edu', 'gov', 'uk', 'net', 'ca', 'de', 'jp', 'fr', 'au', 'us', 'ru', 'ch', 'it', 'nl', 'se', 'no', 'es', 'mil', 'ly']
|
||||
|
||||
|
@ -103,7 +103,7 @@ RegExpUtils =
|
|||
'('
|
||||
# URL components
|
||||
# (last character must not be puncation, hence two groups)
|
||||
'(?:[\\+~%\\/\\.\\w\\-_@]*[\\+~%\\/\\w\\-_]+)?'
|
||||
'(?:[\\+=~%\\/\\.\\w\\-_@]*[\\+~%\\/\\w\\-_]+)?'
|
||||
|
||||
# optionally followed by: a query string and/or a #location
|
||||
# (last character must not be puncation, hence two groups)
|
||||
|
|
Loading…
Reference in a new issue