From 63a62abfad0269525b53ff4248547edf4d6500b9 Mon Sep 17 00:00:00 2001 From: Jon Trowbridge Date: Sat, 15 Sep 2001 08:58:02 +0000 Subject: No loose name matches on family names. (#8802) 2001-09-15 Jon Trowbridge * backend/ebook/e-card-compare.c (e_card_compare_name): No loose name matches on family names. (#8802) svn path=/trunk/; revision=12857 --- addressbook/backend/ebook/e-card-compare.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'addressbook/backend') diff --git a/addressbook/backend/ebook/e-card-compare.c b/addressbook/backend/ebook/e-card-compare.c index 1de7e2b1f7..d8acbda48e 100644 --- a/addressbook/backend/ebook/e-card-compare.c +++ b/addressbook/backend/ebook/e-card-compare.c @@ -134,7 +134,8 @@ e_card_compare_name (ECard *card1, ECard *card2) if (a->family && b->family) { ++possible; - if (name_fragment_match (a->family, b->family)) { + /* We don't allow "loose matching" (i.e. John vs. Jon) on family names */ + if (! g_utf8_strcasecmp (a->family, b->family)) { ++matches; family_match = TRUE; } -- cgit v1.2.3