lib/compass/fontcustom/glyph_map.rb in compass-fontcustom-1.1.0 vs lib/compass/fontcustom/glyph_map.rb in compass-fontcustom-1.2.0
- old
+ new
@@ -13,10 +13,10 @@
path, name = FontImporter.path_and_name uri
glyphs = FontImporter.files(uri).sort
# TODO: improve extraction of aboslute path
path = File.dirname glyphs.first
- glyphs.map! { |file| File.basename(file)[0..-5].gsub(/[^0-9A-Za-z]/, '') }
+ glyphs.map! { |file| File.basename(file)[0..-5] }
new glyphs, path, name, context
end
# @param glyphs [Array] all the glyphs found at path