X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcoreuserinputhandler.cpp;h=0b3b2b0ac1a8e8e4661e4d11e2f015522e07cffc;hb=42ab7cc22c4702716db2b8bfa1d4545169f772e6;hp=d060ada286b4bbb160ef98196e6160aedbdba866;hpb=ab7ef4d24f62b5848b628482b7762ebfc0b53e1a;p=quassel.git diff --git a/src/core/coreuserinputhandler.cpp b/src/core/coreuserinputhandler.cpp index d060ada2..0b3b2b0a 100644 --- a/src/core/coreuserinputhandler.cpp +++ b/src/core/coreuserinputhandler.cpp @@ -144,7 +144,7 @@ void CoreUserInputHandler::banOrUnban(const BufferInfo &bufferInfo, const QStrin return; } - static QRegExp ipAddress("\\d+\\.\\d+\\.\\d+\\.\\d+"); + static QRegExp ipAddress(R"(\d+\.\d+\.\d+\.\d+)"); if (ipAddress.exactMatch(generalizedHost)) { int lastDotPos = generalizedHost.lastIndexOf('.') + 1; generalizedHost.replace(lastDotPos, generalizedHost.length() - lastDotPos, '*');