From 6cd878fdcb200e069021bc44871c3c970d00dd07 Mon Sep 17 00:00:00 2001 From: xiaoyifang <105986+xiaoyifang@users.noreply.github.com> Date: Fri, 13 Dec 2024 10:44:54 +0800 Subject: [PATCH] opt: reorder the action (#2018) --- src/common/folding.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/folding.cc b/src/common/folding.cc index b28397b4..f8b99d9d 100644 --- a/src/common/folding.cc +++ b/src/common/folding.cc @@ -22,8 +22,8 @@ std::u32string apply( std::u32string const & in, bool preserveWildcards ) { // remove diacritics (normalization), white space, punt, auto temp = QString::fromStdU32String( in ) - .remove( RX::markSpace ) .normalized( QString::NormalizationForm_KD ) + .remove( RX::markSpace ) .removeIf( [ preserveWildcards ]( const QChar & ch ) -> bool { return ch.isPunct() && !( preserveWildcards && ( ch == '\\' || ch == '?' || ch == '*' || ch == '[' || ch == ']' ) );