Skip to content

Commit 3129329

Browse files
committed
fix: newline escaping
1 parent ed96302 commit 3129329

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function arraysEqual(a, b) {
109109

110110
function splitImports(code) {
111111
const imports = [];
112-
const codeWithoutImports = code.replace(/@import\s+(.*);(\r\n)+/gm, (_, group) => {
112+
const codeWithoutImports = code.replace(/@import\s+(.*);[\r\n]*/gm, (_, group) => {
113113
imports.push(group.replace(/(["'])~/, '$1'));
114114
return '';
115115
});

0 commit comments

Comments
 (0)