babel-plugin-styled-components
Advanced tools
Comparing version 2.0.6 to 2.0.7
@@ -62,7 +62,12 @@ "use strict"; | ||
if (countOccurences(str, "'") % 2 === 0 && countOccurences(str, '"') % 2 === 0) { | ||
return str + fragment.trim(); | ||
if (countOccurences(str, "'") % 2 !== 0 || countOccurences(str, '"') % 2 !== 0) { | ||
return str + fragment; | ||
} // Preserve whitespace preceding colon, to avoid joining selectors. | ||
if (/^\s+:/.test(fragment)) { | ||
return str + ' ' + fragment.trim(); | ||
} | ||
return str + fragment; | ||
return str + fragment.trim(); | ||
}, ''); // Detects lines that are exclusively line comments | ||
@@ -69,0 +74,0 @@ |
{ | ||
"version": "2.0.6", | ||
"version": "2.0.7", | ||
"name": "babel-plugin-styled-components", | ||
@@ -4,0 +4,0 @@ "description": "Improve the debugging experience and add server-side rendering support to styled-components", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41107
729