From c734f3e1ab896c4f4d213b0f4d5b36c70fcaf884 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 11 Nov 2019 08:06:47 +0100 Subject: [PATCH] Fix regexp for version input to accept rcX releases --- bin/update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/update.sh b/bin/update.sh index 0b1d0446e..0a3b201af 100755 --- a/bin/update.sh +++ b/bin/update.sh @@ -29,7 +29,7 @@ $opts = rcube_utils::get_opt(array('v' => 'version', 'y' => 'accept:bool')); if (!$opts['version']) { echo "What version are you upgrading from? Type '?' if you don't know.\n"; - if (($input = trim(fgets(STDIN))) && preg_match('/^[0-9.]+[a-z-]*$/', $input)) { + if (($input = trim(fgets(STDIN))) && preg_match('/^[0-9.]+[a-z0-9-]*$/', $input)) { $opts['version'] = $input; } else {