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 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 /(^|\/)\.[^\/]*($|\/)/.test(path);
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 /(^|\/)\.[^\/]*($|\/)/.test(path);
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");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-my-node-modules",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "Visualize, analyze, and clean up node_modules directories to reclaim disk space",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",