Skip to content

Instantly share code, notes, and snippets.

@ColinCampbell
Created May 29, 2010 05:28
Show Gist options
  • Save ColinCampbell/418060 to your computer and use it in GitHub Desktop.
Save ColinCampbell/418060 to your computer and use it in GitHub Desktop.
lessed.each_line {|line|
final += line.gsub(/url\('data:image\/(gif|png);base64,(.*?)'\)/) do |match|
"url('data:image/" + $1 + ";base64," + $2.gsub(" ", "+") + "')"
end
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment