Skip to content

Commit 749ce3b

Browse files
authored
improve docs because ByRole does not receive exact anymore (#1373)
1 parent 3e57295 commit 749ce3b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

docs/queries/about.mdx

+3-6
Original file line numberDiff line numberDiff line change
@@ -317,12 +317,9 @@ can contain options that affect the precision of string matching:
317317

318318
- `exact`: Defaults to `true`; matches full strings, case-sensitive. When false,
319319
matches substrings and is not case-sensitive.
320-
- `exact` has no effect on `regex` or `function` arguments.
321-
- `exact` has no effect on accessible names specified with the `name` option
322-
of `*byRole` queries. You can use a regex for fuzzy matching on accessible
323-
names.
324-
- In most cases using a regex instead of a string gives you more control over
325-
fuzzy matching and should be preferred over `{ exact: false }`.
320+
- it has no effect when used together with `regex` or `function` arguments.
321+
- in most cases, using a regex instead of a string combined with `{ exact: false }`
322+
gives you more control over fuzzy matching so it should be preferred.
326323
- `normalizer`: An optional function which overrides normalization behavior. See
327324
[`Normalization`](#normalization).
328325

0 commit comments

Comments
 (0)