Project

General

Profile

0001-wwwtf-this-is-no-url-fixes-671.patch

seezer, 04/12/2009 06:01 PM

View differences:

src/qtui/chatitem.cpp
418 418
  static QRegExp regExp[] = {
419 419
    // URL
420 420
    // QRegExp(QString("((?:https?://|s?ftp://|irc://|mailto:|www\\.)%1+|%1+\\.[a-z]{2,4}(?:?=/%1+|\\b))%2").arg(urlChars, urlEnd)),
421
    QRegExp(QString("((?:(?:mailto:|\\w+://)|www)%1+)%2").arg(urlChars, urlEnd), Qt::CaseInsensitive),
421
    QRegExp(QString("((?:(?:mailto:|\\w+://)|www\\.)%1+)%2").arg(urlChars, urlEnd), Qt::CaseInsensitive),
422 422

  
423 423
    // Channel name
424 424
    // We don't match for channel names starting with + or &, because that gives us a lot of false positives.
425
-