diff --git a/CHANGELOG.md b/CHANGELOG.md index d22ab41..1a3ee82 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,8 @@ ## 1.1.3 - 2022-10-18 -Updated dependencies +- Updated dependencies +- Fixed windows paths ## 1.1.2 - 2022-01-10 diff --git a/src/index.ts b/src/index.ts index 0bc976f..3cec74b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -30,6 +30,8 @@ export const read = async (pattern: string): Promise => { if (!pattern) { throw new Error("Pattern must be set!"); } + // Denormalizing Windows paths + pattern = pattern.replace(/\\/g, '/'); const files: string[] = sync(pattern, { dot: true, nosort: true,