Closed kristerkari closed 8 years ago
/[+\-*/%](?=\$|\()/g
/(?!^)[+\-*/%](?=\$|\(|\d)/g
With this input:
$height: em(240/2); $easing: cubic-bezier(.35, 0, .765, -0.120); div { margin-top: -($height/2); }
CSSfmt output before:
$height: em(240 / 2); $easing: cubic-bezier(.35, 0, .765, - 0.120); div { margin-top: - ($height/2); }
and after fixes:
$height: em(240/2); $easing: cubic-bezier(.35, 0, .765, -0.120); div { margin-top: -($height / 2); }
@kristerkari Thank you for your contribution! Please fix this PR and #66 to merge :)
@morishitter done!
@kristerkari Nice work!
/[+\-*/%](?=\$|\()/g
=>/(?!^)[+\-*/%](?=\$|\(|\d)/g
With this input:
CSSfmt output before:
and after fixes: