Skip to content

Commit

Permalink
Correct length to endof in SubString call (#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkamins authored and mortenpi committed Jul 19, 2017
1 parent 06b4432 commit ed1f8bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utilities/TextDiff.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function splitby(reg::Regex, text::AbstractString)
push!(out, SubString(text, last, each.match.offset + each.match.endof))
last = each.match.endof + each.offset
end
local laststr = SubString(text, last, length(text))
local laststr = SubString(text, last)
isempty(laststr) || push!(out, laststr)
return out
end
Expand Down

0 comments on commit ed1f8bf

Please sign in to comment.