Skip to content

Commit 536ae9f

Browse files
committed
fixed unit tests
1 parent 3b3b8d0 commit 536ae9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/util/labelUtils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const hasLabelWithHtmlForId = (idValue: string, context: TSESLint.RuleContext<st
4141
}
4242
const sourceCode = context.getSourceCode();
4343

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

4646
let match;
4747
while ((match = regex.exec(sourceCode.text)) !== null) {

0 commit comments

Comments
 (0)