From 8013b37f05e2b1e0e6a81f1c0605159ba4fec807 Mon Sep 17 00:00:00 2001 From: Ronald Tse Date: Thu, 5 Nov 2026 10:04:01 +0800 Subject: [PATCH] Validator: report bare nofetch anchors as citation-chip renders --- scripts/validate-register.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/validate-register.rb b/scripts/validate-register.rb index 4e3a68f..353e9d5 100644 --- a/scripts/validate-register.rb +++ b/scripts/validate-register.rb @@ -132,6 +132,10 @@ report.call(key, "#{name}:#{File.basename(f)}:#{ln}: " \ "unbalanced nofetch( parenthesis") end + if entry =~ /\]\]\]\s*$/ + report.call(key, "#{name}:#{File.basename(f)}:#{ln}: " \ + "bare anchor (renders an empty citation chip)") + end end end end