Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 2x | /** * Shared constants for the SLDS2 build scripts. * * Kept in one place so the hook-matching contract can't drift between the * catalog build (buildCatalog.ts) and the legacy-hook audit (buildLegacyHookData.ts), * which both parse the same `--slds-c-*` surface out of CSS. */ /** * Matches a component hook name: `--slds-c-*` or its private `--_slds-c-*` form. * * Global (`/g`) so callers can drive `String.prototype.matchAll`. Only use it * with `matchAll` (which allocates its own iterator); `test`/`exec` mutate * `lastIndex` on this shared instance and would leak state between callers. */ export const HOOK_RE = /--_?slds-c-[a-z][a-z0-9-]*/g; |