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

Add support for arrays of matches #16

Closed
wants to merge 7 commits into from

Conversation

Floriferous
Copy link

@Floriferous Floriferous commented Apr 18, 2017

With this you can provide an array and a string as the second argument, and replace each of them in the text.

Issue #15

@Floriferous
Copy link
Author

Floriferous commented Apr 18, 2017

I added a few tests, what should the expected behavior be if an empty string is passed as a match ?

Right now if this is the case I simply return the string without matching anything.

@iansinnott
Copy link
Owner

Awesome, thanks for the extensive MR plus tests! I'm going to move back to the issue that started this for the conversation

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.

None yet

2 participants