minor fixes
This commit is contained in:
parent
be69f349d0
commit
9fcffe1692
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ let str = `Winnie: 1
|
|||
Piglet: 2
|
||||
Eeyore: 3`;
|
||||
|
||||
console.log( str.match(/\d\n/gm) ); // 1\n,2\n
|
||||
console.log( str.match(/\d\n/g) ); // 1\n,2\n
|
||||
```
|
||||
|
||||
As we can see, there are 2 matches instead of 3.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue