Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9fcffe1

Browse files
committed
minor fixes
1 parent be69f34 commit 9fcffe1

File tree

1 file changed

+1
-1
lines changed
  • 9-regular-expressions/05-regexp-multiline-mode

1 file changed

+1
-1
lines changed

‎9-regular-expressions/05-regexp-multiline-mode/article.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ let str = `Winnie: 1
7575
Piglet: 2
7676
Eeyore: 3`;
7777

78-
console.log( str.match(/\d\n/gm) ); // 1\n,2\n
78+
console.log( str.match(/\d\n/g) ); // 1\n,2\n
7979
```
8080

8181
As we can see, there are 2 matches instead of 3.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /