fix(anatomy): R5.4 guard rules & (legacy references), image references, nested padded wiki links; linear URL checks
This commit is contained in:
1 parent
6d4fdd65b2
commit
dcef2eb79c
4 files changed
+103
-15
No files matched your search
@@ -113,6 +113,26 @@ const PATTERNS = [
|
||||
'中文',
|
||||
'مرحبا',
|
||||
'e\u0301',
|
||||
'a * b',
|
||||
'*',
|
||||
'_',
|
||||
'a_b',
|
||||
'< x &',
|
||||
'A x &',
|
||||
'![a\\"b]',
|
||||
'![a|b]',
|
||||
'![&]',
|
||||
'![x]',
|
||||
'[[ a [[b]]',
|
||||
'[[a]] [[ b [[c]]',
|
||||
'a & b',
|
||||
'A&B',
|
||||
'x &',
|
||||
'https://x.org/?a=1&pid=2',
|
||||
'https://x.org/?a=1<=2',
|
||||
'https://x.org/?a¬=2',
|
||||
'https://x.org/?a=1&=2',
|
||||
'https://x.org/?a=1©x=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_*\\`[]()<>&#!~ :/.|"é中=;',
|
||||
'&#',
|
||||
'&',
|
||||
'<',
|
||||
'![',
|
||||
'[[',
|
||||
']]',
|
||||
'https://',
|
||||
'www.',
|
||||
'**',
|
||||
|
||||
Reference in new issue
Block a user