lib/scss_lint/selector_visitor.rb in scss-lint-0.23.0 vs lib/scss_lint/selector_visitor.rb in scss-lint-0.23.1

- old
+ new

@@ -21,12 +21,12 @@ end def selector_node_name(node) # Converts the class name of a node into snake_case form, e.g. # `Sass::Selector::SimpleSequence` -> `simple_sequence` - node.class.name.gsub(/.*::(.*?)$/, '\\1'). - gsub(/([A-Z]+)([A-Z][a-z])/, '\1_\2'). - gsub(/([a-z\d])([A-Z])/, '\1_\2'). - downcase + node.class.name.gsub(/.*::(.*?)$/, '\\1') + .gsub(/([A-Z]+)([A-Z][a-z])/, '\1_\2') + .gsub(/([a-z\d])([A-Z])/, '\1_\2') + .downcase end end end