From a9ccc1940905cc1add57d407c26fab1001f43180 Mon Sep 17 00:00:00 2001 From: silverqx Date: Sun, 9 Jun 2024 01:07:59 +0200 Subject: [PATCH] tools bugfix RegEx --- tools/qtbuild-qmysql-driver.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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',