Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

str.replace accepts an array or replacements, closes #263 #267

Merged
merged 2 commits into from
Aug 17, 2019
Merged

Conversation

odino
Copy link
Collaborator

@odino odino commented Aug 16, 2019

"string".replace(["i", "g"], "o", -1) # "strono"

@odino odino added this to the 1.7.x milestone Aug 16, 2019
@odino odino force-pushed the replace-array branch 2 times, most recently from 28c527e to 9e0605a Compare August 17, 2019 10:46
odino added 2 commits August 17, 2019 15:07
```
"string".replace(["i", "g"], "o", -1) # "strono"
```
…closes #262

```
"aaaa".replace("a", "x") # "xxxx"
```
@odino odino merged commit f4fc95c into 1.7.x Aug 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant