From e5f466f481310133115247158cbd37f4115c4070 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 7 Nov 2026 11:17:32 -1000 Subject: Check that the outermost avatar brackets come off With one pair of brackets, matching the innermost pair would have passed the old check as well. --- tests/extensions/test-email-avatar.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/extensions/test-email-avatar.lua') diff --git a/tests/extensions/test-email-avatar.lua b/tests/extensions/test-email-avatar.lua index c9a9ec0..bb3668c 100644 --- a/tests/extensions/test-email-avatar.lua +++ b/tests/extensions/test-email-avatar.lua @@ -112,6 +112,10 @@ h.stays_linear("an address of open brackets is scanned in linear time", address_ h.check("text around the brackets is dropped", hash_of(render("x y", "x")) == plain) +if mode == "stub" then + h.equals("the outermost brackets are the ones taken off", hash_of(render(" c>", "x")), + "4c40a2581c18aec944a8caa7000e17fa") +end local reversed = hash_of(render("a>b