Skip to content

Commit

Permalink
Account for carriage return from Windows when ignoring files
Browse files Browse the repository at this point in the history
  • Loading branch information
howard-e committed Apr 13, 2022
1 parent 394c0b5 commit dd13ac1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/util/report.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ const ignoreDirectories = fs
.readFileSync(ignoreExampleDirs)
.toString()
.trim()
.split('\n')
.split(/\r\n|\r|\n/)
.map((d) => path.resolve(examplePath, d));
const ignoreFiles = fs
.readFileSync(ignoreExampleFiles)
.toString()
.trim()
.split('\n')
.split(/\r\n|\r|\n/)
.map((f) => path.resolve(examplePath, f));

/**
Expand Down

0 comments on commit dd13ac1

Please sign in to comment.