X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Ftabcompleter.cpp;fp=src%2Fuisupport%2Ftabcompleter.cpp;h=ae37fd96b5048b8890ea8fe947159863b3d78631;hp=957ddb00e3e58bec3da7526ecccfb38838d85a13;hb=8582c2ad5708a1972c85bea1cf8d81ad3ece4814;hpb=98144aaad0cd747f186edcd0e36a1d67326ac766 diff --git a/src/uisupport/tabcompleter.cpp b/src/uisupport/tabcompleter.cpp index 957ddb00..ae37fd96 100644 --- a/src/uisupport/tabcompleter.cpp +++ b/src/uisupport/tabcompleter.cpp @@ -80,8 +80,8 @@ void TabCompleter::buildCompletionList() if (!_currentNetwork) return; - QString tabAbbrev = _lineEdit->text().left(_lineEdit->cursorPosition()).section(QRegExp("[^#\\w\\d-_\\[\\]{}|`^.\\\\]"), -1, -1); - QRegExp regex(QString("^[-_\\[\\]{}|`^.\\\\]*").append(QRegExp::escape(tabAbbrev)), Qt::CaseInsensitive); + QString tabAbbrev = _lineEdit->text().left(_lineEdit->cursorPosition()).section(QRegExp(R"([^#\w\d-_\[\]{}|`^.\\])"), -1, -1); + QRegExp regex(QString(R"(^[-_\[\]{}|`^.\\]*)").append(QRegExp::escape(tabAbbrev)), Qt::CaseInsensitive); // channel completion - add all channels of the current network to the map if (tabAbbrev.startsWith('#')) {