mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
*! Better regexp for stem selection from the analysis results.
This commit is contained in:
parent
625e4988ec
commit
94570b5430
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue