lib/fontcustom/options.rb in fontcustom-1.3.3 vs lib/fontcustom/options.rb in fontcustom-1.3.4
- old
+ new
@@ -88,10 +88,10 @@
def clean_css_selector
unless @options[:css_selector].include? "{{glyph}}"
raise Fontcustom::Error,
"CSS selector `#{@options[:css_selector]}` should contain the \"{{glyph}}\" placeholder."
end
- @options[:css_selector] = @options[:css_selector].strip.gsub(/[^\.#\{\}\w]/, "-")
+ @options[:css_selector] = @options[:css_selector].strip.gsub(/[^&%=\[\]\.#\{\}""\d\w]/, "-")
end
def set_input_paths
if @options[:input].is_a? Hash
@options[:input] = symbolize_hash(@options[:input])