mirror of
https://github.com/purocean/yn.git
synced 2026-10-12 23:31:39 +08:00
搜索忽略 node_modules
This commit is contained in:
+1
-1
@@ -187,7 +187,7 @@ exports.search = (repo, str) => {
|
||||
return
|
||||
}
|
||||
|
||||
const list = fs.readdirSync(location).filter(x => !x.startsWith('.'))
|
||||
const list = fs.readdirSync(location).filter(x => !x.startsWith('.') && !ignorePath.test(x))
|
||||
|
||||
list.forEach(x => {
|
||||
const p = path.join(location, x)
|
||||
|
||||
Reference in New Issue
Block a user