Skip to content

Commit 3452f93

Browse files
committed
fix edge case where one case isn't the right language and one case is
Signed-off-by: cobalt <61329810+cobaltt7@users.noreply.github.com>
1 parent c83749d commit 3452f93

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

modules/word-chain/misc.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,13 @@ export async function isWord(word: string, language: Language): Promise<boolean>
125125
)
126126
)
127127
continue;
128-
return metadata.parse.sections.some(
129-
(section) => section.level === "2" && section.line === language.name,
130-
);
128+
129+
if (
130+
metadata.parse.sections.some(
131+
(section) => section.level === "2" && section.line === language.name,
132+
)
133+
)
134+
return true;
131135
}
132136

133137
return false;

0 commit comments

Comments
 (0)