Skip to content

Commit f91e38a

Browse files
committed
One $ is enough :)
1 parent 92479a8 commit f91e38a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export = (mod: { typescript: typeof ts }) => {
5050
// styled.x`
5151
// color: ${'red'};
5252
// `
53-
if (pre.match(/(;|^|\})[\s|\n]*$$/)) {
53+
if (pre.match(/(;|^|\})[\s|\n]*$/)) {
5454
// Mixin, replace with a dummy variable declaration, so scss server doesn't complain about rogue semicolon
5555
return '$a:0' + result.slice(4); // replace(/./gm, c => c === '\n' ? '\n' : ' ');
5656
}

0 commit comments

Comments
 (0)