Login
From:
GitHub
(Uncensored)
subscribe
Fix a bug in String.replace_leading/3 and String.replace_trailing/3 by whatyouhide · Pull Request #5022 · elixir-lang/elixir · GitHub
https://github.com/elixir-lang/elixir/pull/5022
links
backlinks
Roast topics
Find topics
Find it!
Closes #5019. These function would end up in infinite recursion if the "match" argument to replace was an empty string. With this commit, we explicitly check for that empty string and pos...