Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function parseValue(value: string): CSSValue[] {
return parse(value.trim(), opt)[0].value;
}
export default function parse(abbr: string | CSSAbbreviation, config: Config, snippets = convertSnippets(config.snippets)): CSSAbbreviation {
if (typeof abbr === 'string') {
abbr = abbreviation(abbr, { value: !!config.context });
}
for (const node of abbr) {
resolveNode(node, snippets, config);
}
return abbr;
}