mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
RFC Compliant URL Matching
Implemented https://gist.github.com/dperini/729294 in Chatterino 2. This makes URL Validation / Matching RFC compliant.
This commit is contained in:
parent
e6ddfa4903
commit
64461161ec
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ QString MessageBuilder::matchLink(const QString &string)
|
|||
{
|
||||
const QString urlRegExp = "^"
|
||||
// protocol identifier
|
||||
"(?:(?:https?|ftp)://)"
|
||||
"(?:(?:https?|ftp)://)?"
|
||||
// user:pass authentication
|
||||
"(?:\\S+(?::\\S*)?@)?"
|
||||
"(?:"
|
||||
|
|
Loading…
Reference in a new issue