use non capturing group for hex regex

This commit is contained in:
Gabo 2020-06-23 17:26:07 -05:00
parent 5147b5a8ad
commit bfaad59af0

View file

@ -4,4 +4,4 @@ https?:\S*
# Any CLI args (-xzf -aef)
\ -\w+\b
# Hex colors (dummy group to not be treated as comment)
(#)([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})
(?:#)([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})