lib/scss_lint/utils.rb in scss-lint-0.9.0 vs lib/scss_lint/utils.rb in scss-lint-0.10.0
- old
+ new
@@ -17,17 +17,9 @@
selector_array.reject { |item| item.is_a? Sass::Script::Node }.
join.
split
end
- # Given a selector array, returns whether it contains any placeholder
- # selectors with invalid names.
- def selector_has_bad_placeholder?(selector_array)
- extract_string_selectors(selector_array).any? do |selector_str|
- selector_str =~ /%\w*#{INVALID_NAME_CHARS}/
- end
- end
-
def node_has_bad_name?(node)
node.name =~ /#{INVALID_NAME_CHARS}/
end
private