(input: string)
| 799 | } |
| 800 | |
| 801 | function parseRawColorValue(input: string) { |
| 802 | const v = getRGBValues(input); |
| 803 | if (v) { |
| 804 | const color = v[3] < 1 ? |
| 805 | `rgb(${v[0]} ${v[1]} ${v[2]} / ${v[3]})` : |
| 806 | `rgb(${v[0]} ${v[1]} ${v[2]})`; |
| 807 | return {isRaw: true, color}; |
| 808 | } |
| 809 | return {isRaw: false, color: input}; |
| 810 | } |
| 811 | |
| 812 | function handleRawColorValue( |
| 813 | input: string, |
no test coverage detected