work around to fix too long headword in dsl

This commit is contained in:
Xiao YiFang 2022-06-28 20:47:38 +08:00
parent 59698b53dd
commit 02f6c0e47f

View file

@ -1151,6 +1151,11 @@ void processUnsortedParts( wstring & str, bool strip )
void expandOptionalParts( wstring & str, list< wstring > * result,
size_t x, bool inside_recurse )
{
// if str is too long ,it can never be headwords.
if( str.size() > 100 )
{
return;
}
list< wstring > expanded;
list< wstring > * headwords;
headwords = inside_recurse ? result : &expanded;