1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

[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

View file

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