@cspell/cspell-tools 5.12.1 → 5.12.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.
- package/dist/compiler/Reader.js +5 -1
- package/package.json +9 -9
package/dist/compiler/Reader.js
CHANGED
|
@@ -69,7 +69,7 @@ async function readHunspellFiles(filename, options) {
|
|
|
69
69
|
return {
|
|
70
70
|
size: reader.dic.length,
|
|
71
71
|
annotatedWords() {
|
|
72
|
-
return reader.seqAffWords().pipe(_mapAffWords
|
|
72
|
+
return reader.seqAffWords().pipe(_mapAffWords, normalizeAndDedupe);
|
|
73
73
|
},
|
|
74
74
|
rawWords,
|
|
75
75
|
};
|
|
@@ -156,8 +156,12 @@ function* dedupeAndSort(words) {
|
|
|
156
156
|
yield* sortDedupeClear();
|
|
157
157
|
}
|
|
158
158
|
function* _mapAffWords(affWords) {
|
|
159
|
+
const hasSpecial = /[~+!]/;
|
|
159
160
|
for (const affWord of affWords) {
|
|
160
161
|
const { word, flags } = affWord;
|
|
162
|
+
// For now do not include words with special characters.
|
|
163
|
+
if (hasSpecial.test(word))
|
|
164
|
+
continue;
|
|
161
165
|
const compound = flags.isCompoundForbidden ? '' : cspell_trie_lib_1.COMPOUND_FIX;
|
|
162
166
|
const forbid = flags.isForbiddenWord ? cspell_trie_lib_1.FORBID_PREFIX : '';
|
|
163
167
|
if (!forbid) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cspell/cspell-tools",
|
|
3
|
-
"version": "5.12.
|
|
3
|
+
"version": "5.12.5",
|
|
4
4
|
"description": "Tools to assist with the development of cSpell",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
6
6
|
"publishConfig": {
|
|
@@ -45,29 +45,29 @@
|
|
|
45
45
|
},
|
|
46
46
|
"homepage": "https://github.com/streetsidesoftware/cspell#readme",
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"commander": "^8.
|
|
49
|
-
"cspell-io": "^5.12.
|
|
50
|
-
"cspell-trie-lib": "^5.12.
|
|
48
|
+
"commander": "^8.3.0",
|
|
49
|
+
"cspell-io": "^5.12.4",
|
|
50
|
+
"cspell-trie-lib": "^5.12.5",
|
|
51
51
|
"fs-extra": "^10.0.0",
|
|
52
52
|
"gensequence": "^3.1.1",
|
|
53
53
|
"glob": "^7.2.0",
|
|
54
|
-
"hunspell-reader": "^5.12.
|
|
54
|
+
"hunspell-reader": "^5.12.5"
|
|
55
55
|
},
|
|
56
56
|
"engines": {
|
|
57
57
|
"node": ">=12.13.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/fs-extra": "^9.0.13",
|
|
61
|
-
"@types/glob": "^7.
|
|
61
|
+
"@types/glob": "^7.2.0",
|
|
62
62
|
"@types/jest": "^27.0.2",
|
|
63
|
-
"@types/node": "^16.
|
|
63
|
+
"@types/node": "^16.11.6",
|
|
64
64
|
"@types/rimraf": "^3.0.2",
|
|
65
65
|
"@types/shelljs": "^0.8.9",
|
|
66
|
-
"jest": "^27.
|
|
66
|
+
"jest": "^27.3.1",
|
|
67
67
|
"lorem-ipsum": "^2.0.4",
|
|
68
68
|
"rimraf": "^3.0.2",
|
|
69
69
|
"shelljs": "^0.8.4"
|
|
70
70
|
},
|
|
71
71
|
"main": "bin.js",
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "84a21d1f7cbd17cc9633aafdff6dce19d6de35b5"
|
|
73
73
|
}
|