(value: string, start = 0, keyword = parseKeyword(value, start))
| 142 | } |
| 143 | |
| 144 | export function parseColor(value: string, start = 0, keyword = parseKeyword(value, start)): Parsed<Color> { |
| 145 | return parseHexColor(value, start) || parseColorKeyword(value, start, keyword) || parseCssColor(value, start); |
| 146 | } |
| 147 | |
| 148 | const keywordRegEx = /\s*([a-z][\w\-]*)\s*/giy; |
| 149 | function parseKeyword(text: string, start = 0): Parsed<Keyword> { |
no test coverage detected