lib/healthicons/icon.rb in healthicons-0.0.7 vs lib/healthicons/icon.rb in healthicons-0.0.8

- old
+ new

@@ -54,10 +54,10 @@ def safe_filename @_safe_filename ||= if @name.blank? '' else # Removes filenames that start with `.svg`, `./`svg, '../svg', or '/svg' - "#{@name&.gsub(%r{^[.\/]+/?}, '')}.svg" + "#{@name&.gsub(%r{^[./]+/?}, '')}.svg" end end # Generate the icons file path #