Skip to content

Commit

Permalink
fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aubreyquinn committed Nov 8, 2024
1 parent 3b3b8d0 commit 536ae9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/labelUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const hasLabelWithHtmlForId = (idValue: string, context: TSESLint.RuleContext<st
}
const sourceCode = context.getSourceCode();

const regex = /<(Label|label)[^>]*\bid\b\s*=\s*["{']([^"'{}]*)["'}]/gi;
const regex = /<(Label|label)[^>]*\bhtmlFor\b\s*=\s*["{']([^"'{}]*)["'}]/gi;

let match;
while ((match = regex.exec(sourceCode.text)) !== null) {
Expand Down

0 comments on commit 536ae9f

Please sign in to comment.