lib/scss_lint/linter/hex_validation.rb in scss-lint-0.26.2 vs lib/scss_lint/linter/hex_validation.rb in scss-lint-0.27.0

- old
+ new

@@ -11,10 +11,10 @@ end end private - HEX_REGEX = /(#(\h{3}|\h{6}))(?!\h)/ + HEX_REGEX = /(#(\h{3}|\h{6}|\h{8}))(?!\h)/ def check_hex(hex, node) return if HEX_REGEX.match(hex) add_lint(node, "Colors must have either three or six digits: `#{hex}`") end