Skip to content

Commit

Permalink
downcase before matching
Browse files Browse the repository at this point in the history
  • Loading branch information
rubys committed Jul 22, 2023
1 parent c33dddf commit 86f3d1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generators/dockerfile_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,7 @@ def fly_make_toml

pattern = Regexp.new("^(\\d+)(#{suffixes.keys.join('|')})?$", "i")

match = pattern.match(options.swap)
match = pattern.match(options.swap.downcase)

if match
size = ((match[1].to_i * (suffixes[match[2]] || 1)) / 1048576.0).round
Expand Down

0 comments on commit 86f3d1f

Please sign in to comment.