summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2020-08-25 20:23:26 +0200
committerDave Davenport <qball@gmpclient.org>2020-08-25 20:23:26 +0200
commit97ac7c93487aecba422422462e48285aa1177c70 (patch)
treeb4557e329efdd38ce0eb9f148a09baeab3a943f3
parent4f1169e3262eff5687d638aea9128ae7a660cd59 (diff)
[Matching] Make fuzzy matching non-greedy
-rw-r--r--source/helper.c2
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, '\\' );