mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-15 18:30:39 +09:00
fix(issues): decode @mention entities without lockfile or new deps
- Drop entities package (CI blocks pnpm-lock.yaml on PRs; reset lockfile to master) - Restore numeric + allowlisted named entity decoding in issues.ts - Split Greptile mid-token & case into its own test with review comment Made-with: Cursor
This commit is contained in:
parent
53f0988006
commit
2735ef1f4a
4 changed files with 7654 additions and 7542 deletions
|
|
@ -14,12 +14,16 @@ describe("normalizeAgentMentionToken", () => {
|
|||
expect(normalizeAgentMentionToken("Baba ")).toBe("Baba");
|
||||
});
|
||||
|
||||
it("decodes named entities mid-token so agent names can include &", () => {
|
||||
// Greptile: entity mid-token (not only trailing) — must decode & to &, not delete the sequence.
|
||||
it("decodes & in the middle of a mention token", () => {
|
||||
expect(normalizeAgentMentionToken("Ba&ba")).toBe("Ba&ba");
|
||||
});
|
||||
|
||||
it("decodes & so agent names with ampersands still match", () => {
|
||||
expect(normalizeAgentMentionToken("M&M")).toBe("M&M");
|
||||
});
|
||||
|
||||
it("decodes named entities mid-token (e.g. copyright) for full HTML named coverage", () => {
|
||||
it("decodes additional named entities used in rich text (e.g. ©)", () => {
|
||||
expect(normalizeAgentMentionToken("Agent©Name")).toBe("Agent©Name");
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue