diff --git a/source/helper.c b/source/helper.c index ca3e93ae..8c3d9cb7 100644 --- a/source/helper.c +++ b/source/helper.c @@ -181,6 +181,11 @@ static gchar *fuzzy_to_regex ( const char * input ) else { g_string_append ( str, ".*(" ); } + if ( *iter == '\\' ){ + g_string_append_c ( str, '\\'); + iter = g_utf8_next_char ( iter ); + if ( iter == NULL ) break; + } g_string_append_unichar ( str, g_utf8_get_char ( iter ) ); g_string_append ( str, ")" ); first = 0;