diff options
Diffstat (limited to 'std/path/glob.ts')
-rw-r--r-- | std/path/glob.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/std/path/glob.ts b/std/path/glob.ts index faccb8d77..daee22f98 100644 --- a/std/path/glob.ts +++ b/std/path/glob.ts @@ -38,9 +38,14 @@ export interface GlobToRegExpOptions extends GlobOptions { */ export function globToRegExp( glob: string, - options: GlobToRegExpOptions = {} + { extended = false, globstar = true }: GlobToRegExpOptions = {} ): RegExp { - const result = globrex(glob, { ...options, strict: false, filepath: true }); + const result = globrex(glob, { + extended, + globstar, + strict: false, + filepath: true + }); return result.path!.regex; } |