Skip to content

Commit a48ee86

Browse files
bemselfMartinsYong
andauthored
Update 9-regular-expressions/17-regexp-methods/article.md
Co-Authored-By: Martin <a545067127@outlook.com>
1 parent 5b7a79d commit a48ee86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

9-regular-expressions/17-regexp-methods/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ alert( regexp.exec(str) ); // world
279279

280280
如果正则表达式带有标记 `pattern:y`,则搜索将精确地在 `regexp.lastIndex` 位置执行,不会再继续了。
281281

282-
让我们将上例中的 `pattern:g` 替换为 `pattern:y`。现在没有找到匹配项了,因为在位置 `5` 处没有单词:
282+
让我们将上例中的 `pattern:g` 标记替换为 `pattern:y`。现在没有找到匹配项了,因为在位置 `5` 处没有单词:
283283

284284
```js run
285285
let str = 'Hello, world!';

0 commit comments

Comments
 (0)