mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-06 05:38:51 -04:00
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
This commit is contained in:
parent
6b584e9ae9
commit
3f7d41e5bc
1 changed files with 2 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue