Variable: BEM_MODIFIER
ts
const BEM_MODIFIER: Regex<"\\.(?<base>[\\w-]+)--(?<mod>[\\w-]+)", {
flags: "gu";
names: {
base: string;
mod: string;
};
}>;Defined in: packages/regex/src/tiers/cssdoc-local.ts:222
BEM Modifier Pattern Matches BEM double dash modifier syntax: .block--modifier Used for identifying modifier conventions and extracting modifier names.
Example
ts
BEM_MODIFIER.exec(".button--primary")?.groups // { base: "button", mod: "primary" }