File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -573,20 +573,20 @@ function findNestedMatches(haystack, needleSet) {
573
573
574
574
// ensure haystack is an array of an arrays
575
575
if ( ! Array . isArray ( haystack ) ) {
576
- haystack = [ haystack ] ;
577
- for ( var i = 0 ; i < haystack . length ; i ++ ) {
578
- if ( ! Array . isArray ( haystack [ i ] ) ) {
579
- haystack [ i ] = [ haystack [ i ] ] ;
580
- }
576
+ haystack = [ haystack ] ;
577
+ }
578
+ for ( var i = 0 ; i < haystack . length ; i ++ ) {
579
+ if ( ! Array . isArray ( haystack [ i ] ) ) {
580
+ haystack [ i ] = [ haystack [ i ] ] ;
581
581
}
582
582
}
583
583
// ensure needleSet is an array of an arrays
584
584
if ( ! Array . isArray ( needleSet ) ) {
585
585
needleSet = [ needleSet ] ;
586
- for ( var i = 0 ; i < needleSet . length ; i ++ ) {
587
- if ( ! Array . isArray ( needleSet [ i ] ) ) {
588
- needleSet [ i ] = [ needleSet [ i ] ] ;
589
- }
586
+ }
587
+ for ( var i = 0 ; i < needleSet . length ; i ++ ) {
588
+ if ( ! Array . isArray ( needleSet [ i ] ) ) {
589
+ needleSet [ i ] = [ needleSet [ i ] ] ;
590
590
}
591
591
}
592
592
You can’t perform that action at this time.
0 commit comments