Skip to content

Commit

Permalink
So fucking close
Browse files Browse the repository at this point in the history
  • Loading branch information
shefulloflight committed Feb 6, 2025
1 parent 7225e0b commit 6857001
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spellcheck.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6857001

Please sign in to comment.