X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/536b0541fcfea2169e4df33043cd9ff14c657bce..9000bbf865cb3578ba5ed3810dc44253cb46ec7f:/ui-repolist.c diff --git a/ui-repolist.c b/ui-repolist.c index a7de453..98009c0 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -48,13 +48,13 @@ int is_match(struct cgit_repo *repo) { if (!ctx.qry.search) return 1; - if (repo->url && strstr(repo->url, ctx.qry.search)) + if (repo->url && strcasestr(repo->url, ctx.qry.search)) return 1; - if (repo->name && strstr(repo->name, ctx.qry.search)) + if (repo->name && strcasestr(repo->name, ctx.qry.search)) return 1; - if (repo->desc && strstr(repo->desc, ctx.qry.search)) + if (repo->desc && strcasestr(repo->desc, ctx.qry.search)) return 1; - if (repo->owner && strstr(repo->owner, ctx.qry.search)) + if (repo->owner && strcasestr(repo->owner, ctx.qry.search)) return 1; return 0; } @@ -114,7 +114,9 @@ void cgit_print_repolist() html_txt(ctx.repo->name); html_link_close(); html("