Fixed reg-exp for name of device controller firmare version.

This commit is contained in:
Gerhard Hoffmann 2023-09-09 14:41:53 +02:00
parent 64dce44fe1
commit b2798b349e

View File

@ -850,7 +850,7 @@ bool Worker::updateFiles(quint8 percent) {
if (fName.contains("print", Qt::CaseInsensitive)) {
filesToDownload << fName; // download printer-config-files
} else {
static const QRegularExpression version("^.*dc2c[.][0-9]{0,1}[0-9][.][0-9][0-9][.]bin.*$");
static const QRegularExpression version("^.*dc2c[.][0-9]{1,2}[.][0-9]{1,2}[.]bin.*$");
if (fName.contains(version)) {
filesToDownload << fName; // download device controller
}