Skip to content

Commit

Permalink
fix: patterns in config on windows (#133)
Browse files Browse the repository at this point in the history
Co-authored-by: Christoph Flathmann <[email protected]>
  • Loading branch information
stepan662 and Chrissi2812 authored Dec 3, 2024
1 parent b088348 commit afaa272
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/extractor/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ export async function extractKeysOfFiles(opts: Opts) {
exitWithError("Missing '--patterns' or 'config.patterns' option");
}

const files = await glob(opts.patterns, { nodir: true });
const files = await glob(opts.patterns, {
nodir: true,
windowsPathsNoEscape: process.platform === 'win32',
});

if (files.length === 0) {
exitWithError('No files were matched for extraction');
Expand Down

0 comments on commit afaa272

Please sign in to comment.