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

View File

@@ -38,7 +38,7 @@ def read(path):
for field in fields[1:]:
alias = fold(field)
if (not alias or len(alias) > MAXRUNES or hascontrol(alias)
or alias != alias.strip()):
or alias != alias.strip() or alias.startswith(";")):
raise ValueError(f"{path}:{lineno}: bad alias")
entries.append((result, alias))
return entries