Skip to content

Commit ab91165

Browse files
author
José Valim
committed
Merge pull request #1903 from krestenkrab/krab-regex-repeat
More precise regex exception match [for erjang]
2 parents 0e54cad + 6a7609d commit ab91165

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/test/elixir/regex_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule Regex.BinaryTest do
2020
assert is_record(Regex.compile!("foo"), Regex)
2121
assert is_regex(Regex.compile!("foo"))
2222

23-
assert_raise Regex.CompileError, "nothing to repeat at position 0", fn ->
23+
assert_raise Regex.CompileError, %r/position 0$/, fn ->
2424
Regex.compile!("*foo")
2525
end
2626
end

0 commit comments

Comments
 (0)