Skip to content

Commit

Permalink
Update validation regex
Browse files Browse the repository at this point in the history
* Python can have minor versions with two numbers
* The regex accepted 3.9 but not 3.11

Change-Id: I4514f38ed72a8a79dfb77954c43d70e10dcd21cf
  • Loading branch information
achamo authored and Annih committed Oct 3, 2023
1 parent 8fbb813 commit cc3f616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit cc3f616

Please sign in to comment.