* Regular expression to match any color * Always return a new RegExp instance * @type {RegExp}
()
| 238 | * @type {RegExp} |
| 239 | */ |
| 240 | get anyGlobal() { |
| 241 | // Negative lookbehind is not supported in older browsers |
| 242 | return new RegExp( |
| 243 | `(^|\\W)(${namedColors}|${RGB}|${RGBA}|${HSL}|${HSLA}|${HEX})($|\\W)`, |
| 244 | "gi", |
| 245 | ); |
| 246 | }, |
| 247 | }; |
| 248 | |
| 249 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected