From 12a21b7b1af0c8f39605ca923e64afb032f7d805 Mon Sep 17 00:00:00 2001 From: Lajamerr Mittesdine Date: Thu, 12 Jul 2018 12:56:08 -0400 Subject: [PATCH] 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. --- src/common/LinkParser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/LinkParser.cpp b/src/common/LinkParser.cpp index b6bf12443..ac4ddf734 100644 --- a/src/common/LinkParser.cpp +++ b/src/common/LinkParser.cpp @@ -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