Skip to content

Commit b21032f

Browse files
ci: Fix Lint -- Workflow Bot (#5770)
Co-authored-by: Jason3S <3740137+Jason3S@users.noreply.github.com>
1 parent 44c06a8 commit b21032f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cspell-dictionary/src/SpellingDictionary/IgnoreWordsDictionary.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export function createIgnoreWordsDictionary(
123123
w.normalize(NormalizeForm),
124124
);
125125

126-
const hasSpecial = words.findIndex((word) => testSpecialCharacters.test(word)) >= 0;
126+
const hasSpecial = words.some((word) => testSpecialCharacters.test(word));
127127

128128
if (hasSpecial) {
129129
return createSpellingDictionary(words, name, source, {

0 commit comments

Comments
 (0)