ProtonMail / WebClients

Monorepo hosting the proton web clients
GNU General Public License v3.0
4.35k stars 553 forks source link

Add /g to replace all occurrences #222

Closed hodovani closed 3 years ago

hodovani commented 3 years ago

Short description of what this resolves:

The usage of regex in replace will change only the first match. Consider using a regular expression with the global replacement flag (/g) to replace all occurrences.

Changes proposed in this pull request: