We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7df5d15 commit f7f486cCopy full SHA for f7f486c
lib/elixir/lib/string.ex
@@ -908,7 +908,7 @@ defmodule String do
908
do_starts_with(string, prefix)
909
end
910
911
- defp do_starts_with(_, "") do
+ defp do_starts_with(string, "") when is_binary(string) do
912
true
913
914
@@ -944,7 +944,7 @@ defmodule String do
944
do_ends_with(string, suffix)
945
946
947
- defp do_ends_with(_, "") do
+ defp do_ends_with(string, "") when is_binary(string) do
948
949
950
0 commit comments