minor fixes

This commit is contained in:
Ilya Kantor 2021-11-01 21:18:36 +03:00
parent be69f349d0
commit 9fcffe1692

View file

@ -75,7 +75,7 @@ let str = `Winnie: 1
Piglet: 2 Piglet: 2
Eeyore: 3`; 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. As we can see, there are 2 matches instead of 3.