Skip to content

Commit 70c5f04

Browse files
authored
ci: More address matching in typo checker (#230)
1 parent e24799d commit 70c5f04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_typos.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ extend-ignore-re = [
33
# Dash addresses and hex strings contain random character sequences
44
# that may match typo patterns (e.g., "nce", "Ue", "LAF", "BA")
55
# These are intentionally excluded as they are valid cryptographic data
6-
".*[XYy][a-zA-Z0-9]{33}.*", # Dash addresses (base58)
7-
".*tb1q[a-z0-9]{58}.*", # Testnet bech32 addresses
6+
"[Xy78DdPp][1-9A-HJ-NP-Za-km-z]{33}", # Dash addresses (base58)
7+
"(tb|bc)1[a-z0-9]{39,87}", # Bitcoin/bech32 addresses (we have some in tests)
88
"0x[0-9a-fA-F]+", # Hex strings with 0x prefix
99
'"[0-9a-fA-F]+"', # Quoted hex strings in code
1010
'[0-9a-fA-F]{5,}', # Hex strings (5+ chars to catch "BA70D")

0 commit comments

Comments
 (0)