[Matching] Make fuzzy matching non-greedy

This commit is contained in:
Dave Davenport 2020-08-25 20:23:26 +02:00
parent 4f1169e326
commit 97ac7c9348
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ static gchar *fuzzy_to_regex ( const char * input )
g_string_append ( str, "(" ); g_string_append ( str, "(" );
} }
else { else {
g_string_append ( str, ".*(" ); g_string_append ( str, ".*?(" );
} }
if ( *iter == '\\' ) { if ( *iter == '\\' ) {
g_string_append_c ( str, '\\' ); g_string_append_c ( str, '\\' );