aboutsummaryrefslogtreecommitdiff
path: root/thcolor/_color.py
diff options
context:
space:
mode:
Diffstat (limited to 'thcolor/_color.py')
-rwxr-xr-xthcolor/_color.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/thcolor/_color.py b/thcolor/_color.py
index 44672aa..9e62072 100755
--- a/thcolor/_color.py
+++ b/thcolor/_color.py
@@ -41,7 +41,7 @@ _ColorPattern = _re.compile(r"""
(?P<agl_typ>deg|grad|rad|turn))
| ((?P<per>[0-9]+(\.[0-9]*)? | \.[0-9]+) \s* \%)
| (?P<num>[0-9]+(\.[0-9]*)? | \.[0-9]+)
- | (?P<ncol>[RYGCBM] [0-9]{0,2})
+ | (?P<ncol>[RYGCBM] [0-9]{0,2} (\.[0-9]*)?)
| (\# (?P<hex>[0-9a-f]{3} | [0-9a-f]{4} | [0-9a-f]{6} | [0-9a-f]{8}))
| ((?P<name>[a-z]([a-z0-9\s_-]*[a-z0-9_-])?)
( \s* \( \s* (?P<arg> (?0)? ) \s* \) )?)