1
0
mirror of https://github.com/lightning/bolts.git synced 2024-11-19 01:50:03 +01:00

spellcheck: allow space-separated hex, and a few new terms.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2019-07-16 13:01:13 +09:30
parent f3fb4ec9c4
commit 2fe6af8567
2 changed files with 4 additions and 2 deletions

View File

@ -345,3 +345,5 @@ CompactSize
encodings
bigsize
BigSize
namespaces
tlvs

View File

@ -57,14 +57,14 @@ do
# indented field names, eg. ' `num_htlcs`: 0'
# lightning addresses, eg. `lnbc1qpvj6chq...`
# BIP 173 addresses, eg. `bc1qpvj6chq...`
# Short hex strings, eg '0x2bb038521914'
# Short hex strings, eg '0x2bb038521914 12'
# long hex strings
# long base58 strings
WORDS=$(sed -e 's/\]([-#a-zA-Z0-9_.]*)//g' \
-e '/^```/,/^```/d' \
-e 's/`[a-zA-Z0-9_]*`//g' \
-e 's/\* \[`[_a-z0-9*]\+`://g' \
-e 's/0x[a-fA-F0-9]\+//g' \
-e 's/0x[a-fA-F0-9 ]\+//g' \
-e 's/[a-fA-F0-9]\{20,\}//g' \
-e 's/^ .*_htlcs//g' \
-e 's/ ln\(bc\|tb\)[0-9munp]*1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]\+//g' \