Skip to content

Commit 0596378

Browse files
authored
CI: add typos config for ignoring Base64 (#1735)
Uses a regex to detect strings that appear to be sequences of Base64-encoded characters, and re-enables the lint for the JWK implementation in `elliptic-curve`
1 parent 3393356 commit 0596378

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.typos.toml

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
[files]
22
extend-exclude = [
33
".git/",
4-
"elliptic-curve/src/jwk.rs",
54
"signature/tests/derive.rs"
65
]
76

7+
[default]
8+
extend-ignore-re = [
9+
# Patterns which appear to be 36 or more characters of Base64/Base64url
10+
'\b[0-9A-Za-z+/]{36,}\b',
11+
'\b[0-9A-Za-z_-]{36,}\b',
12+
]
13+
814
[default.extend-words]
915
# Authenticated Key Exchange
1016
"AKE" = "AKE"

0 commit comments

Comments
 (0)