Commit 0434b8cf authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Start to fix Bug 313719 - A URL followed by a ) is parsed incorrectly in message viewer

now when we have just (http://www.kde.org) it's parsed correctly

will continue to look at specific bug when detect url

CCBUG: 313719
parent 2239fb22
......@@ -158,8 +158,8 @@ QString LinkLocator::getUrl()
// Most real-life URLs hopefully don't end with dots or commas.
if ( url.length() > 1 ) {
QList<QChar> wordBoundaries;
wordBoundaries << '.' << ',' << ':' << '!' << '?';
if ( wordBoundaries.contains( url.at( url.length() - 1 ) ) ) {
wordBoundaries << '.' << ',' << ':' << '!' << '?' << ')';
if ( wordBoundaries.contains( url.at( url.length() - 1 ) ) ) {
url.chop( 1 );
--mPos;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment