docs: fix toMatch code snippet typo (#21077)

Fixes https://github.com/microsoft/playwright/issues/21014
This commit is contained in:
Max Schmitt 2023-02-22 00:38:30 +01:00 committed by GitHub
parent 4efa9e5ea0
commit 1432c406ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -413,7 +413,7 @@ Ensures that string value matches a regular expression.
```js
const value = 'Is 42 enough?';
expect(value).toMatches(/Is \d+ enough/);
expect(value).toMatch(/Is \d+ enough/);
```
### param: GenericAssertions.toMatch.expected

View File

@ -4144,7 +4144,7 @@ interface GenericAssertions<R> {
*
* ```js
* const value = 'Is 42 enough?';
* expect(value).toMatches(/Is \d+ enough/);
* expect(value).toMatch(/Is \d+ enough/);
* ```
*
* @param expected Regular expression to match against.