Harden repo identity speech names
This commit is contained in:
parent
07066ca8ea
commit
4e091a6f45
3 changed files with 84 additions and 4 deletions
|
|
@ -72,6 +72,18 @@ const cases: Case[] = [
|
|||
"show \"rear pair drifting 38 ms\", \"geometry confidence low\", \"world model provisional\".",
|
||||
detail: "Repo Faces can mention technical labels without speaking in code spans.",
|
||||
},
|
||||
{
|
||||
name: "leading self-label is stripped with kana-folding",
|
||||
run: () => normalizePublicRepoIdentitySpeech(
|
||||
"メタめ: We need one real owner for the public name.",
|
||||
{
|
||||
identityId: "metame",
|
||||
displayName: "メタメ",
|
||||
repoName: "メタメ",
|
||||
},
|
||||
) === "We need one real owner for the public name.",
|
||||
detail: "The public speech boundary owns the speaker label, so mixed-script self-renames in SAY content must be stripped before posting.",
|
||||
},
|
||||
];
|
||||
|
||||
const failures = cases.filter((entry) => !entry.run());
|
||||
|
|
|
|||
Loading…
Reference in a new issue