wvanbergen / chunky_png

Read/write access to PNG images in pure Ruby.
https://chunkypng.com
MIT License
1.05k stars 101 forks source link

RegEx in from_data_url(string) only works with '=' padded strings #30

Closed martikaljuve closed 12 years ago

martikaljuve commented 12 years ago

The RegEx in DataUrlImporting.from_data_url only allows strings that end with either "=" or "==", but base64 can end with other characters as well: http://en.wikipedia.org/wiki/Base64#Padding

Thanks for the gem! :)

wvanbergen commented 12 years ago

Merged, thanks!