Skip to content

Commit

Permalink
regex keys displayed are strings (since that is how we get them from …
Browse files Browse the repository at this point in the history
…PCRE)
  • Loading branch information
oxinabox committed Nov 13, 2020
1 parent 3a5a603 commit 7b5f3d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/regex.jl
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
@test !haskey(m, "foo")
@test (m[:a], m[2], m["b"]) == ("x", "y", "z")
@test sprint(show, m) == "RegexMatch(\"xyz\", a=\"x\", 2=\"y\", b=\"z\")"
@test keys(m) == [:a, 2, :b]
@test keys(m) == ["a", 2, "b"]
end

# Backcapture reference in substitution string
Expand Down

0 comments on commit 7b5f3d2

Please sign in to comment.