mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
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:
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
|
||||
|
|
Loading…
Reference in a new issue