diff options
author | Dave Davenport <qball@gmpclient.org> | 2020-08-25 20:23:26 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2020-08-25 20:23:26 +0200 |
commit | 97ac7c93487aecba422422462e48285aa1177c70 (patch) | |
tree | b4557e329efdd38ce0eb9f148a09baeab3a943f3 | |
parent | 4f1169e3262eff5687d638aea9128ae7a660cd59 (diff) |
[Matching] Make fuzzy matching non-greedy
-rw-r--r-- | source/helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/helper.c b/source/helper.c index d9a1bd4f..a7bfa3e8 100644 --- a/source/helper.c +++ b/source/helper.c @@ -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, '\\' ); |