From 7769592d8dcac69ce9a78f0cef25286c786cb522 Mon Sep 17 00:00:00 2001 From: orfelorfel23 Date: Sat, 3 Oct 2026 22:51:23 +0200 Subject: [PATCH] Auto-Commit: 2026-10-03 22:51:23 --- .dockerignore | 4 ++++ patch_regex.js | 36 ++++++++++++++++++++++++++++++++++++ patch_tile_safe.js | 44 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 84 insertions(+) create mode 100644 patch_regex.js create mode 100644 patch_tile_safe.js diff --git a/.dockerignore b/.dockerignore index 722f671..51e1a59 100644 --- a/.dockerignore +++ b/.dockerignore @@ -14,3 +14,7 @@ test-results playwright-report tests *.md + +test-media + +media diff --git a/patch_regex.js b/patch_regex.js new file mode 100644 index 0000000..8be8b2b --- /dev/null +++ b/patch_regex.js @@ -0,0 +1,36 @@ +const fs = require('fs'); +let tile = fs.readFileSync('src/components/MediaTile.tsx', 'utf8'); + +const regex = /\)\s*:\s*\(\s*\/\* eslint-disable-next-line @next\/next\/no-img-element \*\/\s*\s*\)\s*}/; + +// Wait, the regex needs to match exactly up to the end of the img block. +const regex2 = /\)\s*:\s*\(\s*\/\* eslint-disable-next-line @next\/next\/no-img-element \*\/\s*\s*\)/; + +const newBlock = `) : isVideo ? ( +