Skip to content

Commit

Permalink
Fix glob/minimatch pattern breakage
Browse files Browse the repository at this point in the history
  • Loading branch information
HughePaul committed Jan 26, 2023
1 parent 91b35cd commit 045f654
Show file tree
Hide file tree
Showing 2 changed files with 5,376 additions and 1,328 deletions.
2 changes: 1 addition & 1 deletion lib/backends/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module.exports = {

var glb = options.path
.replace('__lng__', '+([a-zA-Z_-])')
.replace('__ns__', '+([a-zA-Z_.-])')
.replace('__ns__', '+(+([a-zA-Z_.-]))')
.replace('__ext__', '@(json|yml|yaml)');
var rgx = options.path
.replace(/\\/g, '\\\\') // Windows hack, noop for unix file paths
Expand Down
Loading

0 comments on commit 045f654

Please sign in to comment.