From cc16211a300d96b371401ab73ac850fb2cf91673 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 3 Jan 2025 18:15:44 +0100 Subject: [PATCH] cleancmd.pl: strip out backticked words To make sure they are not spellchecked. Also, leaving two backticks is not good because they cause the spellchecker to misinterpret the markdown file so they have to be removed as well. --- .github/scripts/cleancmd.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/scripts/cleancmd.pl b/.github/scripts/cleancmd.pl index e9366de740..355a845e4c 100755 --- a/.github/scripts/cleancmd.pl +++ b/.github/scripts/cleancmd.pl @@ -37,6 +37,9 @@ while() { } next if($ignore); + # strip out backticked words + $_ =~ s/`[^`]+`//g; + # strip out all long command line options $_ =~ s/--[a-z0-9-]+//g;