Skip to content

Commit 04cf19b

Browse files
authored
chore(ci): ignore commit hash links in typo checking (#493)
1 parent 6b2f0bf commit 04cf19b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

_typos.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
[default]
2-
# disable spellcheck for specific lines with trailing `// spellchecker:disable-line`
3-
extend-ignore-re = ["(?Rm)^.*(#|//)\\s*spellchecker:disable-line$"]
2+
extend-ignore-re = [
3+
# disable spellcheck for specific lines with trailing `// spellchecker:disable-line`
4+
"(?Rm)^.*(#|//)\\s*spellchecker:disable-line$",
5+
# links to commits in changelogs and other markdown
6+
"\\[[0-9a-fA-F]{7,}\\]\\([0-9a-fA-F]{40,}\\)",
7+
]
8+
ignore-hex = true
49

510
[default.extend-words]
611
lits = "lits"

0 commit comments

Comments
 (0)