cspell-dictionary 8.8.4 → 8.9.0

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.
@@ -86,7 +86,7 @@ export function createIgnoreWordsDictionary(wordList, name, source) {
86
86
  return createCache.get(wordList, () => {
87
87
  const testSpecialCharacters = /[*+]/;
88
88
  const words = [...parseDictionaryLines(wordList, { stripCaseAndAccents: true })].map((w) => w.normalize(NormalizeForm));
89
- const hasSpecial = words.findIndex((word) => testSpecialCharacters.test(word)) >= 0;
89
+ const hasSpecial = words.some((word) => testSpecialCharacters.test(word));
90
90
  if (hasSpecial) {
91
91
  return createSpellingDictionary(words, name, source, {
92
92
  caseSensitive: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cspell-dictionary",
3
- "version": "8.8.4",
3
+ "version": "8.9.0",
4
4
  "description": "A spelling dictionary library useful for checking words and getting suggestions.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -47,11 +47,11 @@
47
47
  "node": ">=18"
48
48
  },
49
49
  "dependencies": {
50
- "@cspell/cspell-pipe": "8.8.4",
51
- "@cspell/cspell-types": "8.8.4",
52
- "cspell-trie-lib": "8.8.4",
50
+ "@cspell/cspell-pipe": "8.9.0",
51
+ "@cspell/cspell-types": "8.9.0",
52
+ "cspell-trie-lib": "8.9.0",
53
53
  "fast-equals": "^5.0.1",
54
54
  "gensequence": "^7.0.0"
55
55
  },
56
- "gitHead": "e1df92825ed0dacedb1830eeb6d918f01690c69a"
56
+ "gitHead": "33c513cf848a61fb1ebcea1b9c67505a31447411"
57
57
  }