Skip to content
This repository was archived by the owner on Apr 8, 2026. It is now read-only.

Commit 4439400

Browse files
committed
fix(OwnershipEngine): not handling CRLF EOL
1 parent a2e7f6b commit 4439400

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/ownership/OwnershipEngine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class OwnershipEngine {
4141

4242
public static FromCodeownersFile(filePath: string) {
4343
try {
44-
const lines = fs.readFileSync(filePath).toString().split('\n');
44+
const lines = fs.readFileSync(filePath).toString().replace(/\r/g, '').split('\n');
4545

4646
const owned: FileOwnershipMatcher[] = [];
4747

0 commit comments

Comments
 (0)