Skip to content

Variable: MODIFIER_CHAIN ​

ts
const MODIFIER_CHAIN: Regex<"(?<chain>(?:\\.-[\\w-]+)+)", {
  flags: "u";
  names: {
     chain: string;
  };
}>;

Defined in: packages/regex/src/tiers/cssdoc-local.ts:112

Modifier Chain Pattern Matches consecutive modifier classes in a selector. Used to extract and validate modifier sequences.

Example: .base.-active.-size-lg

Example ​

ts
MODIFIER_CHAIN.exec(".-active.-size-lg")?.groups?.chain // ".-active.-size-lg"

Released under the MIT License