Fix match linking (#608)
Right now it's matching links even if they have garbage text infront of it. For example, `sahttp://www.google.com` This change fixes that.
This commit is contained in:
committed by
fourtf
parent
5757a6a761
commit
12a21b7b1a
@@ -29,6 +29,7 @@ LinkParser::LinkParser(const QString &unparsedString)
|
||||
"(?:[-\\w$\\.+!*'(),]+|%[a-fA-F0-9]{2})+)))"
|
||||
// If nothing matches then just go on
|
||||
"|"
|
||||
"^"
|
||||
// Identifier for http and ftp
|
||||
"(?:(?:https?|ftps?)://)?"
|
||||
// user:pass authentication
|
||||
|
||||
Reference in New Issue
Block a user