strmatch
if (strmatch(buf, patch_items[i].tag))
if (patch_items[i].alias && strmatch(buf, patch_items[i].alias))