From dd13ac1213ad0db2bcfc8d08cffd5bda0f0a6999 Mon Sep 17 00:00:00 2001 From: Howard Edwards Date: Wed, 13 Apr 2022 15:44:52 -0500 Subject: [PATCH] Account for carriage return from Windows when ignoring files --- test/util/report.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/util/report.js b/test/util/report.js index 80a6e77b18..5fa6e274d9 100644 --- a/test/util/report.js +++ b/test/util/report.js @@ -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)); /**