Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/core/src/utils/gitIgnoreParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class GitIgnoreParser implements GitIgnoreFilter {
.split(path.sep)
.join(path.posix.sep);

const rawPatterns = content.split('\n');
const rawPatterns = content.split(/\r\n|\n|\r/);
return ignore().add(this.processPatterns(rawPatterns, relativeBaseDir));
}

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/utils/ignoreFileParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class IgnoreFileParser implements IgnoreFileFilter {
debugLogger.debug(`Loading ignore patterns from: ${patternsFilePath}`);

return (content ?? '')
.split('\n')
.split(/\r\n|\n|\r/)
.map((p) => p.trim())
.filter((p) => p !== '' && !p.startsWith('#'));
}
Expand Down