From b28bea9650b5e6f8ef3752b520ef70146bd10501 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Thu, 5 May 2011 22:53:04 +0300 Subject: [PATCH] * mu-contacts: don't ignore whitespace in regexp (by default), so you can use "mu cfind 'John Smith'" --- src/mu-contacts.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mu-contacts.c b/src/mu-contacts.c index ecc712c4..afb3e323 100644 --- a/src/mu-contacts.c +++ b/src/mu-contacts.c @@ -175,10 +175,11 @@ mu_contacts_foreach (MuContacts *self, MuContactsForeachFunc func, GError *err; err = NULL; ecdata._rx = g_regex_new - (pattern, G_REGEX_CASELESS|G_REGEX_EXTENDED|G_REGEX_OPTIMIZE, + (pattern, G_REGEX_CASELESS|G_REGEX_OPTIMIZE, 0, &err); if (!ecdata._rx) { - g_warning ("error in regexp '%s': %s", pattern, err->message); + g_warning ("error in regexp '%s': %s", + pattern, err->message); g_error_free (err); return FALSE; }