From b26da74abf9dca8f76d5531b249a8df72811f7dc Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 27 Aug 2024 17:02:19 +0930 Subject: [PATCH] tools/spellcheck.sh: more generally ignore things inside ``. Signed-off-by: Rusty Russell --- tools/spellcheck.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/spellcheck.sh b/tools/spellcheck.sh index 709913d..8b98b67 100755 --- a/tools/spellcheck.sh +++ b/tools/spellcheck.sh @@ -63,8 +63,7 @@ do WORDS=$(sed -e 's/ [lL][nN]\([bB][cC]\|[tT][bB]\)[0-9munpxMUNP]*1[qpzry9x8gf2tvdw0s3jn54khce6mua7lQPZRY9X8GF2TVDW0S3JN54KHCE6MUA7L]\+//g' \ -e 's/\]([-#a-zA-Z0-9_.]*)//g' \ -e '/^```/,/^```/d' \ - -e 's/`[a-zA-Z0-9_]*`//g' \ - -e 's/\* \[`[_a-z0-9*]\+`://g' \ + -e 's/`[a-zA-Z0-9_*.(),]*`//g' \ -e 's/0x[a-fA-F0-9 ]\+//g' \ -e 's/[a-fA-F0-9]\{20,\}//g' \ -e 's/^ .*_htlcs//g' \