mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Make protocol regexes case insensitive
This commit is contained in:
parent
35de26821a
commit
7d4feb2781
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue