Stardict: Tune links handling in CSS

This commit is contained in:
Abs62 2016-04-01 23:37:46 +03:00
parent 1f97957621
commit 9885390cd3

View file

@ -1548,7 +1548,7 @@ void StardictResourceRequest::run()
// Correct some url's
QRegExp links( "url\\(\\s*(['\"])([^'\"]*)(['\"])\\s*\\)");
QRegExp links( "url\\(\\s*(['\"]?)([^'\"]*)(['\"]?)\\s*\\)", QRegExp::RegExp );
QString id = QString::fromUtf8( dict.getId().c_str() );
int pos = 0;
for( ; ; )