From f18bd46755bfe80c19cfa54782a61b4cdab268f2 Mon Sep 17 00:00:00 2001 From: linmii Date: Sun, 22 Mar 2020 00:01:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=A1=A8=E8=BF=B0=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复表述错误 --- docs/regex.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/regex.md b/docs/regex.md index 1f8c179..f33b429 100644 --- a/docs/regex.md +++ b/docs/regex.md @@ -649,7 +649,7 @@ result.indices.groups // { Z: [ 4, 6 ] } 上面例子中,`exec()`方法返回结果的`indices.groups`属性是一个对象,提供具名组匹配`Z`的开始位置和结束位置。 -如果如何获取成功组匹配,`indices`属性数组的对应成员则为`undefined`,`indices.groups`属性对象的对应成员也是`undefined`。 +如果获取组匹配不成功,`indices`属性数组的对应成员则为`undefined`,`indices.groups`属性对象的对应成员也是`undefined`。 ```javascript const text = 'zabbcdef';