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