We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88e1852 commit e725906Copy full SHA for e725906
src/rules/no-empty-string-alt.js
@@ -22,7 +22,7 @@ module.exports = {
22
token.children.some((child) => child.type === "image"),
23
);
24
25
- const htmlAltRegex = new RegExp(/alt=""|alt=''/, "gid");
+ const htmlAltRegex = /alt=['"]['"]/gid;
26
const markdownAltRegex = new RegExp(/!\[""\]|!\[''\]/, "gid");
27
28
for (const token of [...htmlTagsWithImages, ...inlineImages]) {
0 commit comments