[x] Try to keep the pull requests small; a pull request should try its very best to address only a single concern.
[x] Make sure all tests pass and add additional tests for the code you submit.
[x] Document your reasoning behind the changes. Explain why you wrote the code in the way you did; the code should explain what it does.
[x] If there's an existing issue related to the pull request, reference to it by adding Fix #305, where 305 is the issue number.
[x] If applicable (simple fix), please add a snapshot to save time for reviewers
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.
Fix #305
, where 305 is the issue number.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: