Skip to content

Commit 2b7dddd

Browse files
committed
Suggest alt text should be short
1 parent e42080f commit 2b7dddd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/actions/spelling/line_forbidden.patterns

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@
8686
# Including "image of" or "picture of" in alt text is unnecessary.
8787
\balt=['"](?:an? |)(?:image|picture) of
8888

89+
# Alt text should be short
90+
\balt=(?:'[^']{126,}'|"[^"]{126,}")
91+
8992
# Should be `equals` to `is equal to`
9093
\bequals to\b
9194

0 commit comments

Comments
 (0)