mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-13 07:02:31 -05:00
rbutil: Replace use of QRegExp with QRegularExpression.
Change-Id: Ie89057a9857bc66612cb15fef81d3ca6c3e71b4c
This commit is contained in:
parent
01d2979bce
commit
04e22d8719
3 changed files with 11 additions and 11 deletions
|
|
@ -177,9 +177,9 @@ bool TalkFileCreator::createTalkList(QDir startDir)
|
|||
bool match = false;
|
||||
for(int i=0; i < m_ignoreFiles.size();i++)
|
||||
{
|
||||
QRegularExpression rx(
|
||||
QRegularExpression::wildcardToRegularExpression(
|
||||
(m_ignoreFiles[i].trimmed())));
|
||||
QString pattern = m_ignoreFiles[i].trimmed()
|
||||
.replace("?", ".").replace("*", ".*");
|
||||
QRegularExpression rx(pattern);
|
||||
if(rx.match(fileInf.fileName()).hasMatch())
|
||||
match = true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue