mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-15 10:54:22 -05:00
fixed to display pasted plaintext retroshare link in public chat in html format to get click able.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2483 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
3ec3e4f53a
commit
63d8de8848
@ -955,7 +955,7 @@ void PeersDialog::insertChat()
|
|||||||
}
|
}
|
||||||
|
|
||||||
//replace http://, https:// and www. with <a href> links
|
//replace http://, https:// and www. with <a href> links
|
||||||
QRegExp rx("(https?://[^ <>]*)|(www\\.[^ <>]*)");
|
QRegExp rx("(retroshare://[^ <>]*)|(https?://[^ <>]*)|(www\\.[^ <>]*)");
|
||||||
int count = 0;
|
int count = 0;
|
||||||
int pos = 200; //ignore the first 200 char because of the standard DTD ref
|
int pos = 200; //ignore the first 200 char because of the standard DTD ref
|
||||||
while ( (pos = rx.indexIn(extraTxt, pos)) != -1 ) {
|
while ( (pos = rx.indexIn(extraTxt, pos)) != -1 ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user