From 64461161ec7fb0d6c78c74bc30482845a1150e04 Mon Sep 17 00:00:00 2001 From: Lajamerr Mittesdine Date: Tue, 5 Jun 2018 03:35:54 -0400 Subject: [PATCH] RFC Compliant URL Matching Implemented https://gist.github.com/dperini/729294 in Chatterino 2. This makes URL Validation / Matching RFC compliant. --- src/messages/messagebuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/messages/messagebuilder.cpp b/src/messages/messagebuilder.cpp index 9a6ff88eb..e4d85e6fb 100644 --- a/src/messages/messagebuilder.cpp +++ b/src/messages/messagebuilder.cpp @@ -46,7 +46,7 @@ QString MessageBuilder::matchLink(const QString &string) { const QString urlRegExp = "^" // protocol identifier - "(?:(?:https?|ftp)://)" + "(?:(?:https?|ftp)://)?" // user:pass authentication "(?:\\S+(?::\\S*)?@)?" "(?:"