Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
De-duplicate replace_all and replace_all_copy
Avoid a duplicated function body by having replace_all_copy simply call replace_all on a local copy of the string and then return it.
- Loading branch information
Matthew Mott
committed
Jan 30, 2021
1 parent
3a2cf88
commit e09b3c8
Showing
1 changed file
with
6 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters