Skip to content

Commit

Permalink
Update for search change
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottPJones committed Jun 11, 2015
1 parent 02f3894 commit dde4ee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/utf8.jl
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function search(s::UTF8String, c::Char, i::Integer)
throw(BoundsError(s, i))
end
d = s.data
if !is_utf8_start(d[i])
if is_valid_continuation(d[i])
throw(UnicodeError(UTF_ERR_INVALID_INDEX, i, d[i]))
end
c < Char(0x80) && return search(d, c%UInt8, i)
Expand Down

0 comments on commit dde4ee4

Please sign in to comment.