Skip to content

Commit 5b99b3f

Browse files
default to exact: true
1 parent 7f0e670 commit 5b99b3f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/codegen/browser/selectors.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function getAltTextSelector(
3737

3838
return {
3939
type: 'alt',
40-
text: { value: selectors.alt },
40+
text: { value: selectors.alt, exact: true },
4141
}
4242
}
4343

@@ -50,7 +50,7 @@ function getLabelSelector(
5050

5151
return {
5252
type: 'label',
53-
text: { value: selectors.label },
53+
text: { value: selectors.label, exact: true },
5454
}
5555
}
5656

@@ -63,7 +63,7 @@ function getPlaceholderSelector(
6363

6464
return {
6565
type: 'placeholder',
66-
text: { value: selectors.placeholder },
66+
text: { value: selectors.placeholder, exact: true },
6767
}
6868
}
6969

@@ -76,7 +76,7 @@ function getTitleSelector(
7676

7777
return {
7878
type: 'title',
79-
text: { value: selectors.title },
79+
text: { value: selectors.title, exact: true },
8080
}
8181
}
8282

0 commit comments

Comments
 (0)