MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / anyGlobal

Function anyGlobal

src/utils/color/regex.js:240–246  ·  view source on GitHub ↗

* Regular expression to match any color * Always return a new RegExp instance * @type {RegExp}

()

Source from the content-addressed store, hash-verified

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/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected