Make protocol regexes case insensitive

This commit is contained in:
Rasmus Karlsson 2018-07-03 14:57:11 +00:00
parent 35de26821a
commit 7d4feb2781

View file

@ -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();