X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Ftabcompleter.cpp;h=33c0dfbda8861688e01918fe368b6c0a75462bc8;hb=0e04bcf8b70e86b66020be74dcae4c210a97ea25;hp=f13636c6683542dfafaf1cdfa666e87c0d07e6aa;hpb=d6c4d8ee992a7e7f883b5d1fd9d77f7b340777d7;p=quassel.git diff --git a/src/uisupport/tabcompleter.cpp b/src/uisupport/tabcompleter.cpp index f13636c6..33c0dfbd 100644 --- a/src/uisupport/tabcompleter.cpp +++ b/src/uisupport/tabcompleter.cpp @@ -70,7 +70,7 @@ void TabCompleter::buildCompletionList() { */ QString tabAbbrev = inputLine->text().left(inputLine->cursorPosition()).section(' ',-1,-1); - QRegExp regex(QString("^[^a-zA-Z]*").append(tabAbbrev), Qt::CaseInsensitive); + QRegExp regex(QString("^[^a-zA-Z]*").append(QRegExp::escape(tabAbbrev)), Qt::CaseInsensitive); foreach(IrcUser *ircUser, channel->ircUsers()) { if(regex.indexIn(ircUser->nick()) > -1) {