terkelg/tiny-glob

Some files are missing when doing glob

開放

#28 建立於 2018年9月1日

 (10 則留言) (0 個反應) (0 位負責人)JavaScript (27 個分叉)github user discovery
bughelp wanted

倉庫指標

星標
 (854 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

I have this code:

              const searchPattern = '{post,page}/**/*.{md}'
              glob(searchPattern, {
                cwd: content,
                absolute: true
              })
                .then(files => {
                  console.log(files.length)
                  callback(null, files)
                })
                .catch(err => callback(err))

And I would expect the files for {post,page}/**/*.{md} = {post}/**/*.{md} + {page}/**/*.{md}, but it's not in my case.

I have 2 files for {page}/**/*.{md}, and 53 files for {post}/**/*.{md}, but only 33 for {post,page}/**/*.{md}. Am I doing something wrong here? The searchPattern just works fine under node-glob, fast-glob.

貢獻者指南