This commit is contained in:
Ilya Kantor 2017-04-17 21:45:55 +02:00
parent a4a16fccd6
commit 57dc058c49
4 changed files with 9 additions and 9 deletions

View file

@ -218,7 +218,7 @@ alert( str.match(reg) ); // <a href="link" class="doc">
let str = '...<a href="link1" class="doc">... <a href="link2" class="doc">...';
let reg = /<a href=".*" class="doc">/g;
// Woops! Two links in one match!
// Whoops! Two links in one match!
alert( str.match(reg) ); // <a href="link1" class="doc">... <a href="link2" class="doc">
```