Closed pejrak closed 5 years ago
Awesome! Thanks @pejrak. You're right about the index
so this will need to be released as a new major version, which is totally fine.
@pejrak you feeling good about this one? Maybe we release 1.0 with these changes?
@iansinnott This is good from functionality stand-point, have been using it in a project since adding. The readme should be good, the only thing I did not fully check is the full example with node server. Are you able to execute that?
@pejrak ah, thanks for the reminder. I will look into that and fix it as need be
Doesn't look like this has any movement, but I solved the same problem today and have this functionality at https://github.com/rpearce/flexible-string-replace
Thanks @rpearce. Yeah this one seems to have fallen though the cracks. Going to close it out now as it's two years old
Thanks @iansinnott . @pejrak, if you'd like to be added as a contributor on https://github.com/rpearce/flexible-string-replace, let me know, as your alternative solution & mine were almost identical, and if you still have this problem, perhaps we can iterate there together.
Resolves #6 , but may be introducing breaking changes compared to the previous package versions, which depended on the
index
being the second argument of replacer function.