From 3f7d41e5bc5232529670543e8003e710e26391a1 Mon Sep 17 00:00:00 2001 From: csoler Date: Sun, 29 Mar 2015 14:12:34 +0000 Subject: [PATCH] fixed keyword splitting in chat lobby notify system (Patch from Phenom) git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8097 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/chat/ChatLobbyUserNotify.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/retroshare-gui/src/gui/chat/ChatLobbyUserNotify.cpp b/retroshare-gui/src/gui/chat/ChatLobbyUserNotify.cpp index 2c63ec19f..570dafabc 100644 --- a/retroshare-gui/src/gui/chat/ChatLobbyUserNotify.cpp +++ b/retroshare-gui/src/gui/chat/ChatLobbyUserNotify.cpp @@ -82,11 +82,8 @@ void ChatLobbyUserNotify::setTextToNotify(QStringList value) void ChatLobbyUserNotify::setTextToNotify(QString value) { - QRegExp regExp("([ ~!@#$%^&*()_+{}|:\"<>?,./;'[\\]\\\\\\-=\\t\\n\\r])"); //RegExp for End of Word - QStringList list = value.split(regExp); - QString newValue = list.join("\n"); - while(newValue.contains("\n\n")) newValue.replace("\n\n","\n"); - list = newValue.split("\n"); + while(value.contains("\n\n")) value.replace("\n\n","\n"); + QStringList list = value.split("\n"); setTextToNotify(list); }