lib/scss_lint/linter/string_quotes.rb in scss-lint-0.20.3 vs lib/scss_lint/linter/string_quotes.rb in scss-lint-0.21.0

- old
+ new

@@ -51,20 +51,20 @@ def check_double_quotes(node, string) if config['style'] == 'single_quotes' add_lint(node, 'Prefer single quoted strings') if string !~ /'/ else if string =~ /(?<! \\) \\"/x && string !~ /'/ - add_lint(node, 'Use single-quoted strings when writing double quotes ' + - 'to avoid having to escape the double quotes') + add_lint(node, 'Use single-quoted strings when writing double ' << + 'quotes to avoid having to escape the double quotes') end end end def check_single_quotes(node, string) if config['style'] == 'single_quotes' if string =~ /(?<! \\) \\'/x && string !~ /"/ - add_lint(node, 'Use double-quoted strings when writing single quotes ' + - 'to avoid having to escape the single quotes') + add_lint(node, 'Use double-quoted strings when writing single ' << + 'quotes to avoid having to escape the single quotes') elsif string =~ /(?<! \\) \\"/x add_lint(node, "Don't escape double quotes in single-quoted strings") end else add_lint(node, 'Prefer double-quoted strings') if string !~ /"/