Skip to content

Commit

Permalink
Ignore cases in search queries. Closes #1.
Browse files Browse the repository at this point in the history
  • Loading branch information
novel committed Sep 12, 2010
1 parent 0d239df commit f49f89b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ int main(int argc, char **argv)
gboolean match = FALSE;

if ((contact->email != NULL) &&
(strstr(contact->email,
pattern) != NULL))
(strcasestr(contact->email,
pattern)))
match = TRUE;

if ((contact->title != NULL) &&
(strstr(contact->title, pattern) != NULL))
(strcasestr(contact->title, pattern)))
match = TRUE;

if (match == TRUE)
Expand Down

0 comments on commit f49f89b

Please sign in to comment.