Skip to content

Commit a8604af

Browse files
committed
reader: only split compounds for supported langs
1 parent ab401ab commit a8604af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wikdict-reader/src/wikdict_reader/lookup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def basic_lookup(cur, phrase: str) -> Iterable:
5151

5252

5353
def compound_lookup(compound_db_path, split_lang, phrase) -> list[str]:
54-
if not split_lang:
54+
if split_lang not in wikdict_compound.supported_langs:
5555
return []
5656

5757
split = wikdict_compound.split_compound(

0 commit comments

Comments
 (0)