From a2ec163ee5673c9799b19b032d63e0d776161dff Mon Sep 17 00:00:00 2001 From: khannurien Date: Sat, 10 Oct 2026 07:43:28 +0000 Subject: [PATCH] =?UTF-8?q?v4:=20ESLint=20and=20deno=20fmt=20pass=20on=20t?= =?UTF-8?q?he=20whole=20tree=20again=20=E2=80=94=20html.ts's=20attribute?= =?UTF-8?q?=20pattern=20escaped=20a=20"/"=20its=20character=20class=20does?= =?UTF-8?q?n't=20need=20escaped=20(no-useless-escape),=20and=20a=20line=20?= =?UTF-8?q?of=20journalLayout.test.ts=20ran=20past=20the=20width.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- api/remote/html.ts | 2 +- src/test/utils/feed/journalLayout.test.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/api/remote/html.ts b/api/remote/html.ts index 5c0a8c6a..f841533a 100644 --- a/api/remote/html.ts +++ b/api/remote/html.ts @@ -159,7 +159,7 @@ const TAG_RE = /** Matches one attribute: unquoted, single- or double-quoted, or bare. */ const ATTR_RE = - /([^\s"'<>\/=]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+)))?/g; + /([^\s"'<>/=]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+)))?/g; function parseAttrs(source: string): Attrs { const attrs: Attrs = new Map(); diff --git a/src/test/utils/feed/journalLayout.test.ts b/src/test/utils/feed/journalLayout.test.ts index 186da134..2a7e477e 100644 --- a/src/test/utils/feed/journalLayout.test.ts +++ b/src/test/utils/feed/journalLayout.test.ts @@ -66,7 +66,9 @@ describe("hasThumbnail / hasQuote", () => { expect(hasThumbnail(makeDump({ thumbnailMime: "image/webp" }))).toBe(true); expect( hasThumbnail( - makeDump({ richContent: { type: "generic", url: "u", thumbnailUrl: "t" } }), + makeDump({ + richContent: { type: "generic", url: "u", thumbnailUrl: "t" }, + }), ), ).toBe(true); expect(hasThumbnail(makeDump())).toBe(false);