Skip to content

Commit 58ebcb3

Browse files
authored
fix: update regexp-groups (#1139)
1 parent 48823f8 commit 58ebcb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

9-regular-expressions/11-regexp-groups/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
括号将字符组合,所以 `pattern:(go)+` 匹配 `match:go``match:gogo``match:gogogo`等。
1919

2020
```js run
21-
alert( 'Gogogo now!'.match(/(go)+/i) ); // "Gogogo"
21+
alert( 'Gogogo now!'.match(/(go)+/ig) ); // "Gogogo"
2222
```
2323

2424
### 示例:域名

0 commit comments

Comments
 (0)