I have a bug that started randomly failing our tests on Heroku.
In a very particular scenario once every couple hundred of runs
Regex.split(~r/\s+/, "10 EUR") returns a one-element list
["10.00 EUR"] instead of two-element list
["10.00", "EUR"]. If I call it directly, it always works. However, in this very particular setup presented in this repo, it reliably fails every now and then.
I can see the behaviour both locally and on Heroku so I am starting to believe I’ve detected a bug in Elixir.
If anyone is interested, here is a repo with a minimal test setup.
Let me know if you can reproduce it with instructions from the repo and if you have any idea about how to fix it.