Skip to content

Commit

Permalink
work around to fix too long headword in dsl
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyifang committed Jun 29, 2022
1 parent 59698b5 commit 02f6c0e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dsl_details.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 02f6c0e

Please sign in to comment.