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 ? ( +