Ladislav Michnovič wrote: > 2006/4/7, Jon Keating <[EMAIL PROTECTED]>: > >>On Wed, March 29, 2006 4:42 am, Martin Garbe wrote: >> >>>ok. I looked at rfc 1738. there the url is denfined. In this rfc some >>>groups of characters are explained. >>> >>>- - alphanumeric >>>- - unsafe characters: <>"#%{}|\^~[]` space >>>- - reserved characters: ;/?:@=& >>>- - special characters: $-_.+!*'(), >>> >>>All these characters can be part of an url. >>>I now include all these characters except: <>" space >>>Please try the patch now. >> >>I have included this patch in SVN and hopefully it will get a thourough >>testing by the users to see if it is lacking anything. > > > Hello. I have a experience that URL: > http://suseportal.cz/node/1489#comment-3263 > is truncated after #.
In the attachend patch # is added to the regular expression. regards rsLeo
--- licq_old/plugins/qt-gui/src/mlview3.cpp 2006-06-08 16:11:34.453339152 +0200 +++ licq/plugins/qt-gui/src/mlview3.cpp 2006-06-08 15:46:56.961951984 +0200 @@ -94,7 +94,7 @@ int pos = 0; if (highlightURLs && (pos = text.find(reAHREF, pos)) == -1) { - QRegExp reURL("(\\b|^)((https?|ftp)://([-a-z0-9]+(:[-a-z0-9]+)?@)?[-a-z0-9.]+[-a-z0-9](:[0-9]+)?(/([-a-z0-9%{}|\\\\^~`;/?:@=&$_.+!*'(),]|\\[|\\])*)?)"); + QRegExp reURL("(\\b|^)((https?|ftp)://([-a-z0-9]+(:[-a-z0-9]+)?@)?[-a-z0-9.]+[-a-z0-9](:[0-9]+)?(/([-a-z0-9%{}|\\\\^~`;/?:@=&$_.+!*'(),#]|\\[|\\])*)?)"); reURL.setMinimal(false); reURL.setCaseSensitive(false); pos = 0;
_______________________________________________ Licq-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/licq-devel