From 7d4feb2781fbcf220cb1bb9bcaf76b8978979cc6 Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Tue, 3 Jul 2018 14:57:11 +0000 Subject: [PATCH] Make protocol regexes case insensitive --- src/messages/MessageBuilder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/messages/MessageBuilder.cpp b/src/messages/MessageBuilder.cpp index 9d19dbdd9..636bd91c0 100644 --- a/src/messages/MessageBuilder.cpp +++ b/src/messages/MessageBuilder.cpp @@ -47,8 +47,8 @@ QString MessageBuilder::matchLink(const QString &string) { LinkParser linkParser(string); - static QRegularExpression httpRegex("\\bhttps?://"); - static QRegularExpression ftpRegex("\\bftps?://"); + static QRegularExpression httpRegex("\\bhttps?://", QRegularExpression::CaseInsensitiveOption); + static QRegularExpression ftpRegex("\\bftps?://", QRegularExpression::CaseInsensitiveOption); if (!linkParser.hasMatch()) { return QString();