From a7a04fb6eb299765a09c6e5451118f2dbd14728d Mon Sep 17 00:00:00 2001 From: surunzi Date: Fri, 19 Jun 2020 10:25:34 +0800 Subject: [PATCH] chore: small changes --- src/domains/CSS.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/domains/CSS.ts b/src/domains/CSS.ts index e5e451a..ce6b9a4 100644 --- a/src/domains/CSS.ts +++ b/src/domains/CSS.ts @@ -159,8 +159,8 @@ export function setStyleTexts(params: any) { } function formatMatchedCssRule(node: any, matchedCssRule: any) { - const { selectorText } = matchedCssRule; - const selectors = map(selectorText.split(','), trim); + const { selectorText }: { selectorText: string } = matchedCssRule; + const selectors = map(selectorText.split(','), selector => trim(selector)); const shorthandEntries = getShorthandEntries(matchedCssRule.style); const style = stylesheet.formatStyle(matchedCssRule.style);