mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-21 07:46:06 +08:00
Allow autolinked URLs to contain multiple ?
in the query string
Example: https://www.google.com/url?q=https://applications.zoom.us/addon/invitation/detail?meetingUuid%3DVR6HZxMATvCVGOSn1v9n3g%253D%253D%26signature%3D83fff9a366964e5127c118309cad9cd51276d6811e65cd692caec4747fc6e50f&sa=D&usg=AOvVaw1U-7NzdOrBF6AAYIdJAbZn
This commit is contained in:
parent
bc8cd5670d
commit
fa71b5d6b1
|
@ -164,9 +164,10 @@ const RegExpUtils = {
|
|||
// (last character must not be puncation, hence two groups)
|
||||
'(?:[\\+=~%\\/\\.\\w\\-_@]*[\\+~%\\/\\w\\-:_])?',
|
||||
|
||||
// optionally followed by: a query string and/or a #location
|
||||
// (last character must not be puncation, hence two groups)
|
||||
"(?:\\?[\\-\\+=&;:%@$\\(\\)'\\*\\/~\\!\\.,\\w_]*[\\-\\+=&;~%@\\w_\\/])?",
|
||||
// optionally followed by one or more query string ?asd=asd&as=asd type sections
|
||||
"(?:\\?[\\-\\+=&;:%@$\\(\\)'\\*\\/~\\!\\.,\\w_]*[\\-\\+=&;~%@\\w_\\/])*",
|
||||
|
||||
// optionally followed by a #search-or-hash section
|
||||
"(?:#['\\$\\&\\(\\)\\*\\+,;=\\.\\!\\/\\\\\\w%-?]*[\\/\\\\\\w])?",
|
||||
')?',
|
||||
')',
|
||||
|
|
Loading…
Reference in a new issue