fix: tighten emoji lookup contracts

This commit is contained in:
2026-08-12 15:36:37 +09:00
parent d0def814ef
commit fabce14933
9 changed files with 157 additions and 9 deletions

2
dict.c
View File

@@ -33,7 +33,7 @@ dictlookup(Dictreq *req, Dictres *res)
while(p < e && *p != ' ')
p++;
sinit(&tmp, sp, p - sp);
if(scmp(&tmp, &req->key) != 0)
if(req->lang == LangEMOJI || scmp(&tmp, &req->key) != 0)
res->kouho[res->nkouho++] = tmp;
if(p < e)
p++;