cspell-glob 10.3.4 → 10.3.5

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -537,7 +537,12 @@ function buildMatcherFn(_id, patterns, options) {
537
537
  if (!isRelativeValueNested(relPathToFile)) continue;
538
538
  fname = relPathToFile;
539
539
  }
540
- if (rule.fn(fname)) return {
540
+ let isMatch = rule.fn(fname);
541
+ if (!isMatch && !isRelPat && !dot) {
542
+ const relPathToFile = relativeToRoot(rootURL);
543
+ isMatch = isRelativeValueNested(relPathToFile) && rule.fn(relPathToFile);
544
+ }
545
+ if (isMatch) return {
541
546
  matched,
542
547
  glob: pattern.glob,
543
548
  root,
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public",
5
5
  "provenance": true
6
6
  },
7
- "version": "10.3.4",
7
+ "version": "10.3.5",
8
8
  "description": "Glob matcher for cspell",
9
9
  "keywords": [
10
10
  "cspell",
@@ -58,7 +58,7 @@
58
58
  "node": ">=22.18.0"
59
59
  },
60
60
  "dependencies": {
61
- "@cspell/url": "10.3.4",
61
+ "@cspell/url": "10.3.5",
62
62
  "picomatch": "^4.0.7"
63
63
  },
64
64
  "devDependencies": {
@@ -66,5 +66,5 @@
66
66
  "@types/picomatch": "^4.0.3",
67
67
  "micromatch": "^4.0.8"
68
68
  },
69
- "gitHead": "7bb5c4750ece7c732edbf920c0cea910d9b4d717"
69
+ "gitHead": "f37a244a54b686fc1ac11272d6019b9a059b062a"
70
70
  }