Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Mar 13, 2022
1 parent 29d0821 commit cf40133
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/config/normalize/lib/wild_wild_path/iterate/recurse.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ const expandRecursiveToken = function (entry, index) {
}))
}

// Handle ** recursion
// Handle ** recursion.
// It matches 0, 1 or more levels.
// - It can match 0 levels, i.e. the current object
// It is the same as the union of . * *.* *.*.* and so on.
// Using both * and ** can express minimum depth, e.g. *.** or *.*.**
const recurseAnyDeep = function (queryArray, index) {
const parentQuery = queryArray.slice(0, index)
const childQuery = queryArray.slice(index)
Expand Down

0 comments on commit cf40133

Please sign in to comment.