Skip to content

Commit

Permalink
opt: reorder the action
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyifang committed Dec 13, 2024
1 parent a533777 commit 979432e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/folding.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 == ']' ) );
Expand Down

0 comments on commit 979432e

Please sign in to comment.