fixed a bug that was causeing compass to remove non sprite images

This commit is contained in:
Scott Davis 2011-08-19 19:55:55 -04:00
parent a82a3dd5d4
commit 4187f88970

View File

@ -7,7 +7,7 @@ module Compass
# finds all sprite files # finds all sprite files
def self.find_all_sprite_map_files(path) def self.find_all_sprite_map_files(path)
hex = "[0-9a-f]" hex = "[0-9a-f]"
glob = "*-{,s}#{hex*10}{#{VALID_EXTENSIONS.join(",")}}" glob = "*-s#{hex*10}{#{VALID_EXTENSIONS.join(",")}}"
Dir.glob(File.join(path, "**", glob)) Dir.glob(File.join(path, "**", glob))
end end