mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
opt: extension check ignore case
This commit is contained in:
parent
01948b5aab
commit
34796ce8ed
2
utils.hh
2
utils.hh
|
@ -88,7 +88,7 @@ inline bool isHtmlResources(QUrl const &url) {
|
|||
auto fileName = url.fileName();
|
||||
auto ext=fileName.mid(fileName.lastIndexOf("."));
|
||||
QStringList extensions{".css",".woff",".woff2","ttf",".bmp" ,".jpg", ".png",".gif", ".tif",".wav", ".ogg", ".oga", ".mp3", ".mp4", ".aac", ".flac",".mid", ".wv",".ape"} ;
|
||||
return extensions.indexOf(ext)>-1;
|
||||
return extensions.contains( ext, Qt::CaseInsensitive );
|
||||
}
|
||||
|
||||
inline QString escape( QString const & plain )
|
||||
|
|
Loading…
Reference in a new issue