From 27e9be09cf50a32d016cfd00cb36f225969f3473 Mon Sep 17 00:00:00 2001 From: Arnaud Chong Date: Tue, 3 Oct 2023 13:36:29 +0200 Subject: [PATCH] Update validation regex * Python can have minor versions with two numbers * The regex accepted 3.9 but not 3.11 Change-Id: I4514f38ed72a8a79dfb77954c43d70e10dcd21cf --- resources/install.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/install.rb b/resources/install.rb index 7f88cd8..5e8f01a 100644 --- a/resources/install.rb +++ b/resources/install.rb @@ -38,7 +38,7 @@ def pyversion(binary) action :install do converge_if_changed :version, :pip_version do - valid_name_regex = /^python3\.?\d?$/ + valid_name_regex = /^python3\.?(\d+)?$/ if new_resource.source == 'portable_pypy3' package 'bzip2'