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

Function anyStrict

src/utils/color/regex.js:227–234  ·  view source on GitHub ↗

* Regular expression to match any color * @type {RegExp}

()

Source from the content-addressed store, hash-verified

225 * @type {RegExp}
226 */
227 get anyStrict() {
228 delete this.any;
229 this.any = new RegExp(
230 `^(${namedColors}|${RGB}|${RGBA}|${HSL}|${HSLA}|${HEX})$`,
231 "i",
232 );
233 return this.any;
234 },
235 /**
236 * Regular expression to match any color
237 * Always return a new RegExp instance

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected