From 0fa968d189ef6ced2228dd6b868485bdeb64d506 Mon Sep 17 00:00:00 2001 From: Xiao Yi Fang Date: Tue, 23 Jul 2024 08:58:24 +0800 Subject: [PATCH] opt: headword parse modification --- src/dict/stardict.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dict/stardict.cc b/src/dict/stardict.cc index 56d8fdf2..acd58ec4 100644 --- a/src/dict/stardict.cc +++ b/src/dict/stardict.cc @@ -1738,7 +1738,7 @@ static void handleIdxSynFile( string const & fileName, if ( headword.find_first_of( '$' ) != string::npos ) continue; // Skip this entry } - else if ( headword.end() == '$' ) { + else if ( headword.back() == '$' ) { if ( headword.find_first_of( '/' ) != string::npos ) continue; // Skip this entry }