elixir-lang/elixir — pull request #1117 by pragdave (2013-05-25 22:45:13+00:00)
Title: Fix for a problem with String.ends_with?

iex> String.ends_with? "hello", ["hell", "lo"]
false

The problem was that the implementation uses :binary.matches, and that returns only
one match. It would find "hell", but pos+len != size, and so returned false.

Changed for a less efficient implementation.