fix(anatomy): R5.4 guard rules & (legacy references), image references, nested padded wiki links; linear URL checks

This commit is contained in:
bchanot committed 2026-10-23 13:02:21 +02:00
1 parent 6d4fdd65b2
commit dcef2eb79c
4 files changed
+103 -15

No files matched your search

@@ -113,6 +113,26 @@ const PATTERNS = [
'中文',
'مرحبا',
'e\u0301',
'a &#42 b',
'&#x2A',
'&#95',
'a&#95b',
'&lt x &',
'&#65 x &',
'![a\\"b]',
'![a|b]',
'![&amp]',
'![x]',
'[[ a [[b]]',
'[[a]] [[ b [[c]]',
'a & b',
'A&B',
'x &',
'https://x.org/?a=1&pid=2',
'https://x.org/?a=1&lt=2',
'https://x.org/?a&not=2',
'https://x.org/?a=1&amp=2',
'https://x.org/?a=1&copyx=2',
'&',
'# titre',
'1. item',
@@ -127,7 +147,13 @@ const PATTERNS = [
/** A seeded generator (a 32-bit LCG): the random probes are the same on every run. */
function randomProbes(count: number): string[] {
const alphabet = [
...'ab_*\\`[]()<>&#!~ :/.|"é中',
...'ab_*\\`[]()<>&#!~ :/.|"é中=;',
'&#',
'&amp',
'&lt',
'![',
'[[',
']]',
'https://',
'www.',
'**',