From 94570b5430194d5beb174ea641d76b0bb058f4f9 Mon Sep 17 00:00:00 2001 From: Konstantin Isakov Date: Thu, 9 Apr 2009 23:16:07 +0000 Subject: [PATCH] *! Better regexp for stem selection from the analysis results. --- src/hunspell.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) {