修复表述错误

修复表述错误
This commit is contained in:
linmii
2020-03-22 00:01:09 +08:00
committed by GitHub
parent 74acd642fa
commit f18bd46755
+1 -1
View File
@@ -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';