From 68570019f3ee79ef102ea873455ad0e8c2738dc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luc=C3=ADa=20M=2E=20Polis?= Date: Wed, 5 Feb 2025 18:07:02 -0800 Subject: [PATCH] So fucking close --- spellcheck.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spellcheck.rb b/spellcheck.rb index 1040a57c..b9fb4c30 100644 --- a/spellcheck.rb +++ b/spellcheck.rb @@ -23,7 +23,8 @@ def preprocess_content(content, filename, allowlist_words) content .gsub(/\[([^\]]+)\]\([^)]+\)/, '\1') # Ignore Markdown links, keeping only the text within square brackets - .gsub(/{%\s*include\s+content-reuse\/[^\n%]+\.md\s*%}/, ' ') +# .gsub(/{%\s*include\s+content-reuse\/[^\n%]+\.md\s*%}/, ' ') + .gsub(/{%\s*include\s+content-reuse\/[^\n%]+\.md(?:\s+\w+="[^"]*")*\s*%}/, ' ') # Ignore transcludes .gsub(/Gävle/, ' ') # Ignore special cases .gsub(/dæmons/i, ' ') .gsub(/([[:alnum:]]+(_|-))+[[:alnum:]]+/, ' ') # Ignore underscores and dashes