diff --git a/src/hunspell.cc b/src/hunspell.cc index 7d73f83e..4ea3cee4 100644 --- a/src/hunspell.cc +++ b/src/hunspell.cc @@ -352,7 +352,7 @@ void HunspellHeadwordsRequest::run() wstring lowercasedWord = Folding::applySimpleCaseOnly( word ); - QRegExp cutStem( "^\\s*st:(.+)(\\s+\\w{2}:.*)$" ); + QRegExp cutStem( "^\\s*st:(((\\s+(?!\\w{2}:))|\\S+)+)" ); for( int x = 0; x < suggestionsCount; ++x ) {