Closed UltCombo closed 9 years ago
@contra BTW, there is just one line missing to hit 100% coverage. Perhaps we should throw instead of returning true for unknown glob types? https://coveralls.io/files/408135441#L105
Here are the benchmarks to prove the perf gain.
Before:
After:
Benchmark source: sindresorhus/globby#10 (irrelevant globby data omitted) The benchmark with fewer exclusions is slower because it has the overhead of emitting more matched files.
I may have misunderstood the regex matching part though, it would make more sense if the regexp.test()
returns true == keep file, else filter it out.
@contra PTAL when you have time.
Nice!
Oh sorry, mixing too many topics here. Moved the glob-stream and globby topic to #31
The RegExp stuff should keep the file if the regex returns true, otherwise filter it out as implemented. Want to write some tests to ensure this is happening?
@contra I did, see the files changed tab. :smiley:
Improve negative globs handling perf and fix some issues with RegExp.