Kita::Board* KitaBoardView::getBoard( const QString& line ) const
{
- QRegExp regexp( "<A HREF=(.*)>(.*)</A>", false );
+ QRegExp regexp( "<A HREF=([^ ]*).*>(.*)</A>", false );
if ( regexp.search( line ) != -1 ) {
QString board_url = regexp.cap( 1 );
QString board_title = regexp.cap( 2 );
QRegExp url_2ch( "http://.*\\.2ch\\.net/.*" );
QRegExp url_bbspink( "http://.*\\.bbspink\\.com/.*" );
QRegExp url_www_2ch( "http://www\\.2ch\\.net/.*" );
+ QRegExp url_machibbs( "http://.*\\.machi\\.to/.*" );
if ( url.isEmpty() ) return false;
QString str = url.url();
- if ( url_2ch.search( str ) == -1 && url_bbspink.search( str ) == -1 ) return false;
+ if ( url_2ch.search( str ) == -1 && url_bbspink.search( str ) == -1
+ && url_machibbs.search( str ) == -1 ) return false;
if ( url_www_2ch.search( str ) != -1 ) return false;
return true;