Skip to content

Commit a3c2138

Browse files
committed
fix: typo in import regex, add tests
1 parent 3cfc18b commit a3c2138

File tree

2 files changed

+211
-59
lines changed

2 files changed

+211
-59
lines changed

src/steps/generateChanges.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const MATCHERS = [
1717
/((?:import|export) .+ from (?:"([^"]+)"))/g,
1818
/((?:import|export) .+ from (?:'([^']+)'))/g,
1919
// multiline import/exports with {}
20-
/((?:import|export) {\n[^}]+} from (?:"([^']+)"))/g,
20+
/((?:import|export) {\n[^}]+} from (?:"([^"]+)"))/g,
2121
/((?:import|export) {\n[^}]+} from (?:'([^']+)'))/g,
2222
];
2323

0 commit comments

Comments
 (0)