Make protocol regexes case insensitive
This commit is contained in:
@@ -47,8 +47,8 @@ QString MessageBuilder::matchLink(const QString &string)
|
|||||||
{
|
{
|
||||||
LinkParser linkParser(string);
|
LinkParser linkParser(string);
|
||||||
|
|
||||||
static QRegularExpression httpRegex("\\bhttps?://");
|
static QRegularExpression httpRegex("\\bhttps?://", QRegularExpression::CaseInsensitiveOption);
|
||||||
static QRegularExpression ftpRegex("\\bftps?://");
|
static QRegularExpression ftpRegex("\\bftps?://", QRegularExpression::CaseInsensitiveOption);
|
||||||
|
|
||||||
if (!linkParser.hasMatch()) {
|
if (!linkParser.hasMatch()) {
|
||||||
return QString();
|
return QString();
|
||||||
|
|||||||
Reference in New Issue
Block a user