oh-my-node-modules 1.3.0 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -3081,7 +3081,7 @@ function calculateStatistics(items) {
|
|
|
3081
3081
|
function shouldExcludePath(path, patterns) {
|
|
3082
3082
|
return patterns.some((pattern) => {
|
|
3083
3083
|
if (pattern === "**/.*" || pattern === ".*") {
|
|
3084
|
-
return /(^|\/)\.[^\/]
|
|
3084
|
+
return /(^|\/)\.[^\/]+($|\/)/.test(path);
|
|
3085
3085
|
}
|
|
3086
3086
|
const regexPattern = pattern.replace(/\*\*/g, "{{GLOBSTAR}}").replace(/\*/g, "[^/]*").replace(/\?/g, ".").replace(/\{\{GLOBSTAR\}\}/g, ".*");
|
|
3087
3087
|
const regex = new RegExp(regexPattern, "i");
|
package/dist/index.js
CHANGED
|
@@ -307,7 +307,7 @@ function calculateStatistics(items) {
|
|
|
307
307
|
function shouldExcludePath(path, patterns) {
|
|
308
308
|
return patterns.some((pattern) => {
|
|
309
309
|
if (pattern === "**/.*" || pattern === ".*") {
|
|
310
|
-
return /(^|\/)\.[^\/]
|
|
310
|
+
return /(^|\/)\.[^\/]+($|\/)/.test(path);
|
|
311
311
|
}
|
|
312
312
|
const regexPattern = pattern.replace(/\*\*/g, "{{GLOBSTAR}}").replace(/\*/g, "[^/]*").replace(/\?/g, ".").replace(/\{\{GLOBSTAR\}\}/g, ".*");
|
|
313
313
|
const regex = new RegExp(regexPattern, "i");
|