Skip to content

Commit

Permalink
remove d*
Browse files Browse the repository at this point in the history
  • Loading branch information
lab-kw committed Jun 7, 2022
1 parent 1079fa2 commit 8a8e4a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mini_magick/image/info.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def parse_warnings(raw_info)

raw_info.split("\n").each do |line|
# must match "%m %w %h %b"
return line if line.match?(/^[A-Z]+ \d+ \d+ \d+(d*|\.\d+)([KMGTPEZY]{0,1})B$/)
return line if line.match?(/^[A-Z]+ \d+ \d+ \d+(|\.\d+)([KMGTPEZY]{0,1})B$/)
end
raise TypeError
end
Expand Down

0 comments on commit 8a8e4a9

Please sign in to comment.