We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c77006e commit b78699bCopy full SHA for b78699b
1 file changed
server/src/accessibilityPatterns.ts
@@ -11,16 +11,16 @@
11
12
// Order based om most common types first
13
const patterns: string[] = [
14
- "<div(?:.)+?>",
15
- "<span(?:.)+?>",
+ "<div(>|)(?:.)+?>",
+ "<span(>|)(?:.)+?>",
16
// "id=\"(?:.)+?\"",
17
- "<a(?:.)+?>(?:(?:\\s|\\S)+?(?=<\/a>))<\/a>",
18
- "<img(?:.)+?>",
19
- "<input(?:.)+?>",
20
- "<head(?:.|)+?>(?:(?:\\s|\\S|)+?(?=<\/head>))<\/head>",
21
- "<html(?:.)+?>",
+ "<a (?:.)+?>(?:(?:\\s|\\S)+?(?=<\/a>))<\/a>",
+ "<img (?:.)+?>",
+ "<input (?:.)+?>",
+ "<head (?:.|)+?>(?:(?:\\s|\\S|)+?(?=<\/head>))<\/head>",
+ "<html(>|)(?:.)+?>",
22
"tabindex=\"(?:.)+?\"",
23
- "<(?:i|)frame(?:.|)+?>"
+ "<(?:i|)frame (?:.|)+?>"
24
];
25
export const pattern: RegExp = new RegExp(patterns.join('|'), 'ig');
26
0 commit comments