UNPKG

stylelint

Version:

A mighty CSS linter that helps you avoid errors and enforce conventions.

11 lines (10 loc) • 247 B
/** * Normalize a pseudo-selector name for lookups: * lowercased, without leading colons * * @param {string} value * @returns {string} */ export default function normalizePseudoName(value) { return value.toLowerCase().replace(/^:+/, ''); }