Skip to content

Commit

Permalink
Use more backward compatible unpack
Browse files Browse the repository at this point in the history
  • Loading branch information
sdsykes committed Jan 3, 2025
1 parent ba61a28 commit 7f6a50c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fastimage/fastimage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ def fetch_using_file_open

def fetch_using_base64(uri)
decoded = begin
uri.split(',')[1].unpack1("m")
uri.split(',')[1].unpack("m").first
rescue
raise CannotParseImage
end
Expand Down

0 comments on commit 7f6a50c

Please sign in to comment.