From 13ec41e1026693fb4b6b823a994fe2196064c95e Mon Sep 17 00:00:00 2001 From: Iain Poulson Date: Tue, 31 Aug 2021 17:15:48 +0100 Subject: [PATCH] Allow double digits in the minor version number when validating the version string This issue means folks can't update to ACF Pro 5.10.1 --- src/ACFProInstaller/Plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ACFProInstaller/Plugin.php b/src/ACFProInstaller/Plugin.php index 31e92fc..acf5deb 100644 --- a/src/ACFProInstaller/Plugin.php +++ b/src/ACFProInstaller/Plugin.php @@ -184,7 +184,7 @@ protected function validateVersion($version) { // \A = start of string, \Z = end of string // See: http://stackoverflow.com/a/34994075 - $major_minor_patch_optional = '/\A\d\.\d\.\d{1,2}(?:\.\d)?\Z/'; + $major_minor_patch_optional = '/\A\d\.\d{1,2}\.\d{1,2}(?:\.\d)?\Z/'; if (!preg_match($major_minor_patch_optional, $version)) { throw new \UnexpectedValueException(