Skip to content

Commit

Permalink
expose GLOBSTAR marker
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Feb 13, 2022
1 parent 8532d2d commit 691e5e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions minimatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const path = (() => { try { return require('path') } catch (e) {}})() || {
minimatch.sep = path.sep

const GLOBSTAR = Symbol('globstar **')
minimatch.GLOBSTAR = GLOBSTAR
const expand = require('brace-expansion')

const plTypes = {
Expand Down
5 changes: 5 additions & 0 deletions test/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,8 @@ t.test('flipNegate', t => {
function alpha (a, b) {
return a > b ? 1 : -1
}

t.test('GLOBSTAR marker exposed', t => {
t.match(mm.GLOBSTAR, Symbol)
t.end()
})

0 comments on commit 691e5e6

Please sign in to comment.