Project_path_matches_wildcard_search function behavior

project_path_matches_wildcard_search’s docstring states

a search item of “kdelibs” would match a project path of “kde/kdelibs” but not “kde/kdelibs/nepomuk-core”. However, “kdelibs/*” would match “kde/kdelibs/nepomuk-core”

but the function returns true for project_path: “kde/kdelibs/nepomuk-core” and search_item: “kdelibs”. Is this a bug? If so, I was going to send an MR but I am not sure about 2 things:

Can ‘*’ be a search_item and match everything?
Can “kdelibs/nepomuk*” be a search_item and match “kde/kdelibs/nepomuk-core”?

Seems like user can write whatever in use_projects field