X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Ftabcompleter.cpp;h=33c0dfbda8861688e01918fe368b6c0a75462bc8;hp=f13636c6683542dfafaf1cdfa666e87c0d07e6aa;hb=91d8f58ff834d0dc73f26f44518fa66cce592a2d;hpb=09312db1a755642802ff15595900878fbe76b21a 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) {