X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Futil.cpp;h=d9b9d2aed8941bda4178b70b2dd6df0d93f63e55;hp=a59db8fe30979f3dd2653a7d15567756ede35ad1;hb=258df63876c8b2b5f3ff14a6fbae14ea0b713457;hpb=8b8ec8597367d13527e9e7a46e184ee99a7d5f32 diff --git a/src/common/util.cpp b/src/common/util.cpp index a59db8fe..d9b9d2ae 100644 --- a/src/common/util.cpp +++ b/src/common/util.cpp @@ -73,7 +73,7 @@ bool isChannelName(const QString &str) QString stripFormatCodes(QString message) { - static QRegExp regEx{"\x03(\\d\\d?(,\\d\\d?)?)?|[\x02\x0f\x12\x16\x1d\x1f]"}; + static QRegExp regEx{"\x03(\\d\\d?(,\\d\\d?)?)?|\x04([\\da-fA-F]{6}(,[\\da-fA-F]{6})?)?|[\x02\x0f\x11\x12\x16\x1d\x1e\x1f]"}; return message.remove(regEx); }