Skip to content

Commit

Permalink
Fix Windows EOL
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Mar 21, 2024
1 parent 940176e commit f48475b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/knip/src/IssueFixer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ export class IssueFixer {
await readFile(filePath, 'utf-8')
);
const withoutEmptyReExports = sourceFileText
.replaceAll(/export \{[ ,]+\} from ('|")[^'"]+('|");?\n?/g, '')
.replaceAll(/export \{[ ,]+\};?\n?/g, '');
.replaceAll(/export \{[ ,]+\} from ('|")[^'"]+('|");?\r?\n?/g, '')
.replaceAll(/export \{[ ,]+\};?\r?\n?/g, '');
await writeFile(filePath, withoutEmptyReExports);
}
}
Expand Down

0 comments on commit f48475b

Please sign in to comment.