Skip to content

Commit

Permalink
Fixed windows path normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
szikszail committed Oct 18, 2022
1 parent d73a301 commit 38a6fb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

## 1.1.3 - 2022-10-18

Updated dependencies
- Updated dependencies
- Fixed windows paths

## 1.1.2 - 2022-01-10

Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ export const read = async (pattern: string): Promise<Document[]> => {
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,
Expand Down

0 comments on commit 38a6fb3

Please sign in to comment.