@@ -337,7 +337,7 @@ class Glob {
337
337
const subPatterns = new SafeSet ( ) ;
338
338
const nSymlinks = new SafeSet ( ) ;
339
339
for ( const index of pattern . indexes ) {
340
- // For each child, chek potential patterns
340
+ // For each child, check potential patterns
341
341
if ( this . #cache. seen ( entryPath , pattern , index ) || this . #cache. seen ( entryPath , pattern , index + 1 ) ) {
342
342
return ;
343
343
}
@@ -365,7 +365,7 @@ class Glob {
365
365
// If next pattern is the last one, add to results
366
366
this . #results. add ( entryPath ) ;
367
367
} else if ( nextMatches && entry . isDirectory ( ) ) {
368
- // Pattern mached , meaning two patterns forward
368
+ // Pattern matched , meaning two patterns forward
369
369
// are also potential patterns
370
370
// e.g **/b/c when entry is a/b - add c to potential patterns
371
371
subPatterns . add ( index + 2 ) ;
@@ -532,7 +532,7 @@ class Glob {
532
532
const subPatterns = new SafeSet ( ) ;
533
533
const nSymlinks = new SafeSet ( ) ;
534
534
for ( const index of pattern . indexes ) {
535
- // For each child, chek potential patterns
535
+ // For each child, check potential patterns
536
536
if ( this . #cache. seen ( entryPath , pattern , index ) || this . #cache. seen ( entryPath , pattern , index + 1 ) ) {
537
537
return ;
538
538
}
@@ -566,7 +566,7 @@ class Glob {
566
566
yield this . #withFileTypes ? entry : entryPath ;
567
567
}
568
568
} else if ( nextMatches && entry . isDirectory ( ) ) {
569
- // Pattern mached , meaning two patterns forward
569
+ // Pattern matched , meaning two patterns forward
570
570
// are also potential patterns
571
571
// e.g **/b/c when entry is a/b - add c to potential patterns
572
572
subPatterns . add ( index + 2 ) ;
0 commit comments