javascript-tutorial/uk.javascript.info

a small mistake

fabrikatoroleg opened this issue · 2 comments

Привіт. Це звісно не велика, але ж помилка.
https://uk.javascript.info/regexp-introduction
Глава Регулярні вирази
Заміна: str.replace
У прикладі
// без прапора g
alert( "Ми будемо, ми будемо".replace(/ми/i, "Я") ); // Я будемо, я будемо
треба замінити на
alert( "Ми будемо, ми будемо".replace(/ми/i, "Я") ); // Я будемо, ми будемо

Fixed in this commit. Thanks for notice