Skip to content

Commit b04b2a4

Browse files
committed
Merge branch 'feature/alova@3.x'
2 parents 2a3c38b + 13cd630 commit b04b2a4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/tutorial/03-client/02-in-depth/02-method-matcher.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ const matchedMethods = alova.snaptshots.match({
6464

6565
## Match a single method instance
6666

67-
You can also set the second function of the `match` function to `true` to return the first item of the matching result, and return `undefined` if no match is found.
67+
You can also set the second function of the `match` function to `false` to return the first item of the matching result, and return `undefined` if no match is found.
6868

6969
```js
70-
const matchedSingleMethod = alova.snaptshots.match(/^todo/, true);
70+
const matchedSingleMethod = alova.snaptshots.match(/^todo/, false);
7171
```
7272

7373
## Limit instance snapshots

i18n/zh-CN/docusaurus-plugin-content-docs/current/tutorial/03-client/02-in-depth/02-method-matcher.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ const matchedMethods = alova.snaptshots.match({
6464

6565
## 匹配单个 method 实例
6666

67-
你还可以将`match`函数的第二个函数设置为`true`返回匹配结果的第一项,未匹配到时返回`undefined`
67+
你还可以将`match`函数的第二个函数设置为`false`返回匹配结果的第一项,未匹配到时返回`undefined`
6868

6969
```js
70-
const matchedSingleMethod = alova.snaptshots.match(/^todo/, true);
70+
const matchedSingleMethod = alova.snaptshots.match(/^todo/, false);
7171
```
7272

7373
## 限制实例快照

0 commit comments

Comments
 (0)