diff options
Diffstat (limited to 'std/fs/walk.ts')
-rw-r--r-- | std/fs/walk.ts | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/std/fs/walk.ts b/std/fs/walk.ts index 4808598af..16ccc357e 100644 --- a/std/fs/walk.ts +++ b/std/fs/walk.ts @@ -21,11 +21,13 @@ function patternTest(patterns: RegExp[], path: string): boolean { // Forced to reset last index on regex while iterating for have // consistent results. // See: https://stackoverflow.com/a/1520853 - return patterns.some((pattern): boolean => { - const r = pattern.test(path); - pattern.lastIndex = 0; - return r; - }); + return patterns.some( + (pattern): boolean => { + const r = pattern.test(path); + pattern.lastIndex = 0; + return r; + } + ); } function include(filename: string, options: WalkOptions): boolean { |