This commit is contained in:
Kovid Goyal 2019-05-01 16:42:43 +05:30
parent 2ed54d1782
commit 3de9c83787
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -188,8 +188,8 @@ def parse_comma_separated(tokens):
HASH_REGEXPS = (
(2, re.compile('^#([\da-f])([\da-f])([\da-f])$', re.I).match),
(1, re.compile('^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$', re.I).match),
(2, re.compile(r'^#([\da-f])([\da-f])([\da-f])$', re.I).match),
(1, re.compile(r'^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$', re.I).match),
)