Skip to content

Commit

Permalink
ci: Fix Lint -- Workflow Bot (#5770)
Browse files Browse the repository at this point in the history
Co-authored-by: Jason3S <3740137+Jason3S@users.noreply.github.com>
  • Loading branch information
1 parent 44c06a8 commit b21032f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export function createIgnoreWordsDictionary(
w.normalize(NormalizeForm),
);

const hasSpecial = words.findIndex((word) => testSpecialCharacters.test(word)) >= 0;
const hasSpecial = words.some((word) => testSpecialCharacters.test(word));

if (hasSpecial) {
return createSpellingDictionary(words, name, source, {
Expand Down

0 comments on commit b21032f

Please sign in to comment.