* mu-contacts: don't ignore whitespace in regexp (by default), so you can use

"mu cfind 'John Smith'"
This commit is contained in:
Dirk-Jan C. Binnema 2011-05-05 22:53:04 +03:00
parent 3e01853243
commit b28bea9650
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}