Cleaner handling of SVG ID

This commit is contained in:
Andy Meneely
2019-05-29 14:20:03 -04:00
parent 1c3b39b59d
commit a40c4d7dc4
4 changed files with 53 additions and 13 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ module Squib
end
def validate_id(arg, _i)
return nil if arg.nil?
return nil if arg.to_s.empty?
arg = '#' << arg unless arg.start_with? '#'
arg
end