css_ruleset_parser.ts view source
(css: string, rules: ParsedRule[]): string | null Extracts the CSS comment from a ruleset (if any). Looks for comments before the first rule.
css
- Raw CSS string
stringrules
- Parsed rules
ParsedRule[]returns
string | null Comment text without delimiters, or null if no comment