Skip to content

Variable: RSCSS_HELPER ​

ts
const RSCSS_HELPER: Regex<"\\._(?<name>[a-z][\\w-]*)", {
  flags: "u";
  names: {
     name: string;
  };
}>;

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

RSCSS Helper Pattern Matches RSCSS helper/utility class naming: underscore-prefixed. Helpers are general-purpose classes typically using !important. Examples: ._unmargin, ._center, ._pull-left Pattern: ._helper-name with hyphens allowed Used for utility and helper class extraction.

Example ​

ts
RSCSS_HELPER.exec("._unmargin")?.groups?.name // "unmargin"
RSCSS_HELPER.exec("._center")?.groups?.name // "center"
RSCSS_HELPER.exec("._pull-left")?.groups?.name // "pull-left"

Released under the MIT License