diff --git a/packages/tailwindcss-language-service/src/util/jit.ts b/packages/tailwindcss-language-service/src/util/jit.ts index ea863d230ddfee92110f42adbaff1a33c2f7711a..7aac917c16fabb375755ffed88d015f50f21d7f2 100644 --- a/packages/tailwindcss-language-service/src/util/jit.ts +++ b/packages/tailwindcss-language-service/src/util/jit.ts @@ -47,7 +47,7 @@ } return clone .toString() - .replace(/([^;{}\s])\n}/g, '$1;\n}') + .replace(/([^}{;])$/gm, '$1;') .replace(/^(?: )+/gm, (indent: string) => ' '.repeat((indent.length / 4) * tabSize)) }