diff --git a/tools/qtbuild-qmysql-driver.ps1 b/tools/qtbuild-qmysql-driver.ps1 index 96ebca0c8..28e642ef7 100644 --- a/tools/qtbuild-qmysql-driver.ps1 +++ b/tools/qtbuild-qmysql-driver.ps1 @@ -14,7 +14,7 @@ Param( HelpMessage = 'Specifies the MySQL Server version against which to build ' + 'the QMYSQL driver (version number of the MySQL Server installation folder).')] [ValidateNotNullOrEmpty()] - [ValidatePattern('^[8-12]\.\d{1,2}\$', + [ValidatePattern('^(?:[8-9]|1[0-2])\.\d{1,2}$', ErrorMessage = 'The argument "{0}" is not the correct Qt version number. ' + 'The argument "{0}" does not match the "{1}" pattern.')] [string] $MySQLVersion = '8.4',