Skip to content

Commit 5fcbc91

Browse files
larskaniseregon
authored andcommitted
Fix compatibility to ruby-3.2
... which is the default ruby version on Github Actions.
1 parent 708024e commit 5fcbc91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generate-windows-versions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# Validate all the URLs in the versions json
2222
def validate(versions, allowed_urls_regexps)
2323
versions.values.flat_map(&:values).each do |url|
24-
if allowed_urls_regexps.none? { |regexp| regexp.match? url }
24+
if allowed_urls_regexps.none? { |regexp| regexp.match? url.to_s }
2525
raise SecurityError, "Unexpected URL: #{url}"
2626
end
2727
end

0 commit comments

Comments
 (0)