*! Better regexp for stem selection from the analysis results.

This commit is contained in:
Konstantin Isakov 2009-04-09 23:16:07 +00:00
parent 625e4988ec
commit 94570b5430

View file

@ -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 )
{