Skip to content

Commit

Permalink
fix(providers): enable "posix" micromatch option
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmlnc committed Jun 9, 2019
1 parent 039a52c commit 2af2623
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/providers/provider.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ describe('Providers → Provider', () => {
nobrace: false,
nocase: false,
noext: false,
noglobstar: false
noglobstar: false,
posix: true
};

const actual = provider.getMicromatchOptions();
Expand Down
3 changes: 2 additions & 1 deletion src/providers/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ export default abstract class Provider<T> {
nobrace: !this._settings.braceExpansion,
nocase: !this._settings.caseSensitiveMatch,
noext: !this._settings.extglob,
noglobstar: !this._settings.globstar
noglobstar: !this._settings.globstar,
posix: true
};
}
}
4 changes: 3 additions & 1 deletion src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ export type ErrorFilterFunction = fsWalk.ErrorFilterFunction;
export type EntryFilterFunction = fsWalk.EntryFilterFunction;
export type DeepFilterFunction = fsWalk.DeepFilterFunction;
export type EntryTransformerFunction = (entry: Entry) => EntryItem;
export type MicromatchOptions = micromatch.Options;
export type MicromatchOptions = micromatch.Options & {
posix?: boolean;
};

export type FileSystemAdapter = fsWalk.FileSystemAdapter;

0 comments on commit 2af2623

Please sign in to comment.