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

+5 -2
View File
@@ -74,7 +74,10 @@ fn equine_safe(probe: &str) -> bool {
.split('<')
.skip(1)
.any(|after| after.starts_with(|c: char| c.is_ascii_alphabetic() || "/!?".contains(c)));
let construct = tag || ["](", "][", "[[ ", "&"].iter().any(|m| probe.contains(m));
let construct = tag
|| ["](", "][", "![", "[[ ", " ]]", "&"]
.iter()
.any(|m| probe.contains(m));
!construct
&& !probe.contains(" ")
&& !probe.starts_with(' ')
@@ -134,6 +137,6 @@ fn every_probe_is_formatted_as_the_typescript_or_refused() {
"silent differences for {} probes: {silent:?}",
silent.len()
);
assert_eq!(same + refused, 762);
assert_eq!(same + refused, 782);
println!("{same} identical, {refused} refused");
}