From 0f8f5b9cc392d4741c239b1c1c0f6071dfc6faa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Sun, 4 Oct 2026 21:09:51 -0400 Subject: [PATCH] Tests: the www source's pattern escapes its slashes Co-Authored-By: Claude Opus 5.5 --- tests/catalog.test.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/catalog.test.mjs b/tests/catalog.test.mjs index cc48809..dd34234 100644 --- a/tests/catalog.test.mjs +++ b/tests/catalog.test.mjs @@ -61,7 +61,7 @@ const bad = [ ["an encoded host", { app: { ...good, website: "https://good.example@evil.com/" } }, /plain host/], ["a GitHub source with a trailing slash", { app: { ...good, source: "https://github.com/ada/tally/" } }, /github.com\/owner\/repo/], ["a GitHub source with a query", { app: { ...good, source: "https://github.com/ada/tally?tab=readme-ov-file" } }, /github.com\/owner\/repo/], - ["a GitHub source on www", { app: { ...good, source: "https://www.github.com/ada/tally" } }, /github.com/owner/repo/], + ["a GitHub source on www", { app: { ...good, source: "https://www.github.com/ada/tally" } }, /github.com\/owner\/repo/], ["a host with credentials", { app: { ...good, website: "https://good.example@evil.com/" } }, /plain host/], ["a long description", { app: { ...good, description: "a".repeat(281) } }, /281 weighted characters/], ["stars without their time", { app: { ...good, stars: 3 } }, /go together/],