Fixed reg-exp for name of device controller firmare version.
This commit is contained in:
parent
64dce44fe1
commit
b2798b349e
@ -850,7 +850,7 @@ bool Worker::updateFiles(quint8 percent) {
|
|||||||
if (fName.contains("print", Qt::CaseInsensitive)) {
|
if (fName.contains("print", Qt::CaseInsensitive)) {
|
||||||
filesToDownload << fName; // download printer-config-files
|
filesToDownload << fName; // download printer-config-files
|
||||||
} else {
|
} 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)) {
|
if (fName.contains(version)) {
|
||||||
filesToDownload << fName; // download device controller
|
filesToDownload << fName; // download device controller
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user