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 8972054 commit 45d22caCopy full SHA for 45d22ca
src/Deserialization/lookahead.jl
@@ -6,7 +6,7 @@ quantity, such as `old_tag = "test/struct/re"` and `new_tag = "test/struct/im"`
6
then returns true. False otherwise
7
"""
8
function tags_match_re_im(old_tag, new_tag)
9
- if old_tag[end-2:end] == "/re"
+ if isvalid(old_tag, lastindex(old_tag)-2) && old_tag[end-2:end] == "/re"
10
old_tag_parts = split(old_tag, "/")
11
new_tag_parts = split(new_tag, "/")
12
if ( all(old_tag_parts[1:end-1] .== new_tag_parts[1:end-1]) &&
0 commit comments