Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vmonakhov committed Jan 15, 2024
1 parent e9b4420 commit 6150886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lingvodoc/utils/doc_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ def hfst_parser(dedoc_output, lang, debug_flag=False):
lex = lkp[:plus_pos]
gr = lkp[plus_pos+1:].replace('+', ',')

if xln := re.search(f"[\r\n]{lex}:{w}!([^0].*)[\r\n]", lexicon):
if xln := re.search(f"[\r\n]+{lex}:{w}!([^0].*)[\r\n]+", lexicon):
xln = xln.group(1)
else:
xln = "Unknown"
Expand Down

0 comments on commit 6150886

Please # to comment.