@@ -337,7 +337,7 @@ class Glob {
337337 const subPatterns = new SafeSet ( ) ;
338338 const nSymlinks = new SafeSet ( ) ;
339339 for ( const index of pattern . indexes ) {
340- // For each child, chek potential patterns
340+ // For each child, check potential patterns
341341 if ( this . #cache. seen ( entryPath , pattern , index ) || this . #cache. seen ( entryPath , pattern , index + 1 ) ) {
342342 return ;
343343 }
@@ -365,7 +365,7 @@ class Glob {
365365 // If next pattern is the last one, add to results
366366 this . #results. add ( entryPath ) ;
367367 } else if ( nextMatches && entry . isDirectory ( ) ) {
368- // Pattern mached , meaning two patterns forward
368+ // Pattern matched , meaning two patterns forward
369369 // are also potential patterns
370370 // e.g **/b/c when entry is a/b - add c to potential patterns
371371 subPatterns . add ( index + 2 ) ;
@@ -532,7 +532,7 @@ class Glob {
532532 const subPatterns = new SafeSet ( ) ;
533533 const nSymlinks = new SafeSet ( ) ;
534534 for ( const index of pattern . indexes ) {
535- // For each child, chek potential patterns
535+ // For each child, check potential patterns
536536 if ( this . #cache. seen ( entryPath , pattern , index ) || this . #cache. seen ( entryPath , pattern , index + 1 ) ) {
537537 return ;
538538 }
@@ -566,7 +566,7 @@ class Glob {
566566 yield this . #withFileTypes ? entry : entryPath ;
567567 }
568568 } else if ( nextMatches && entry . isDirectory ( ) ) {
569- // Pattern mached , meaning two patterns forward
569+ // Pattern matched , meaning two patterns forward
570570 // are also potential patterns
571571 // e.g **/b/c when entry is a/b - add c to potential patterns
572572 subPatterns . add ( index + 2 ) ;
0 commit comments