@cspell/cspell-tools 8.15.7 → 8.16.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.
|
@@ -112,8 +112,11 @@ function applyFlags(word, flags) {
|
|
|
112
112
|
return [word + '*'];
|
|
113
113
|
if (flags === (Flags.none | Flags.pfx | Flags.sfx))
|
|
114
114
|
return [word + '*', '*' + word];
|
|
115
|
-
if (flags === (Flags.none | Flags.both))
|
|
116
|
-
|
|
115
|
+
if (flags === (Flags.none | Flags.both)) {
|
|
116
|
+
// the "correct" answer is [word, '+' + word + '+']
|
|
117
|
+
// but practically it makes sense to allow all combinations.
|
|
118
|
+
return ['*' + word + '*'];
|
|
119
|
+
}
|
|
117
120
|
if (flags === (Flags.none | Flags.both | Flags.sfx))
|
|
118
121
|
return [word, '+' + word + '*'];
|
|
119
122
|
if (flags === (Flags.none | Flags.both | Flags.pfx))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cspell/cspell-tools",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.16.0",
|
|
4
4
|
"description": "Tools to assist with the development of cSpell",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -51,12 +51,12 @@
|
|
|
51
51
|
},
|
|
52
52
|
"homepage": "https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell-tools#readme",
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@cspell/cspell-pipe": "8.
|
|
54
|
+
"@cspell/cspell-pipe": "8.16.0",
|
|
55
55
|
"commander": "^12.1.0",
|
|
56
56
|
"cosmiconfig": "9.0.0",
|
|
57
|
-
"cspell-trie-lib": "8.
|
|
57
|
+
"cspell-trie-lib": "8.16.0",
|
|
58
58
|
"glob": "^10.4.5",
|
|
59
|
-
"hunspell-reader": "8.
|
|
59
|
+
"hunspell-reader": "8.16.0",
|
|
60
60
|
"yaml": "^2.6.0"
|
|
61
61
|
},
|
|
62
62
|
"engines": {
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"ts-json-schema-generator": "^2.3.0"
|
|
68
68
|
},
|
|
69
69
|
"module": "bin.mjs",
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "41cd50f9ba34033b6da32408855d7fc3b888c5e0"
|
|
71
71
|
}
|