Skip to content

Commit

Permalink
Fix bug in recognising wildcard * in posix
Browse files Browse the repository at this point in the history
  • Loading branch information
bkp7 committed Feb 26, 2018
1 parent 49c5509 commit 62e3fa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function cli (args) {
let options = {cwd: process.cwd(), ignore: ig}

let pattern
if (argv._.length === 0) { pattern = './**/*.md' } else { pattern = argv._[0] }
if (argv._.length === 0) { pattern = './**/*.md' } else { pattern = argv._ }

debug('starting glob(' + pattern + ', ' + JSON.stringify(options))
glob(pattern, options)
Expand Down

0 comments on commit 62e3fa7

Please sign in to comment.