Skip to content

Commit ede6ff7

Browse files
percent units are also optional in hwb
1 parent a1987d8 commit ede6ff7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
)\s*\)) |
3030
\b(?P<hsl>hsl\(\s*(?P<hsl_content>%(deg)s\s*(,\s*)?%(percent_opt)s\s*(,\s*)?%(percent_opt)s)\s*\)) |
3131
\b(?P<hsla>hsla\(\s*(?P<hsla_content>%(deg)s\s*(,\s*)?(?:%(percent_opt)s\s*(,\s*)?){2}(?:%(percent)s|%(float)s))\s*\)) |
32-
\b(?P<hwb>hwb\(\s*(?P<hwb_content>%(deg)s\s*(,\s*)?%(percent)s\s*(,\s*)?%(percent)s)\s*\)) |
33-
\b(?P<hwba>hwb\(\s*(?P<hwba_content>%(deg)s\s*(,\s*)?(?:%(percent)s\s*(,\s*)?){2}(?:%(percent)s|%(float)s))\s*\)) |
32+
\b(?P<hwb>hwb\(\s*(?P<hwb_content>%(deg)s\s*(,\s*)?%(percent_opt)s\s*(,\s*)?%(percent_opt)s)\s*\)) |
33+
\b(?P<hwba>hwb\(\s*(?P<hwba_content>%(deg)s\s*(,\s*)?(?:%(percent_opt)s\s*(,\s*)?){2}(?:%(percent_opt)s|%(float)s))\s*\)) |
3434
\b(?P<gray>gray\(\s*(?P<gray_content>%(float)s|%(percent)s)\s*\)) |
3535
\b(?P<graya>gray\(\s*(?P<graya_content>(?:%(float)s|%(percent)s)\s*(,\s*)?(?:%(percent)s|%(float)s))\s*\)) |
3636
\b(?P<pantone_code>((\d{2}-)?\d{3,5}\s|(black|blue|bright red|cool gray|dark blue|green|magenta|medium purple|orange|pink|process blue|purple|red|reflex blue|rhodamine red|rose gold|silver|violet|warm gray|warm red|yellow)\s(\d{1,5}\s)?|p\s\d{1,3}-\d{1,2}\s)[a-z]{1,3})\b | # noqa: E501

0 commit comments

Comments
 (0)