Skip to content

Commit 9ffb8f6

Browse files
regex instead of startswith
1 parent e0101d1 commit 9ffb8f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cypress/e2e/a11y.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ describe('a11y tests', () => {
3939
items.forEach((rule) => {
4040
const wcagRefs =
4141
(rule.tags || [])
42-
.filter((tag) => tag.startsWith('wcag'))
42+
.filter((tag) => /^wcag/.test(tag))
4343
.join(', ') || 'no WCAG reference'
4444

4545
cy.task('log', `→ Rule: ${rule.id}`)

0 commit comments

Comments
 (0)