Skip to content

Commit

Permalink
Support AbstractString in unescape
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj committed Aug 21, 2018
1 parent 5bfbd44 commit b845929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/strings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ end
# unescaping not supported for Tuple{Ptr{UInt8}, Int}!!!
unescape(T, x::Tuple{Ptr{UInt8}, Int}, escapechar, closequotechar) = x

function unescape(T, s::String, escapechar, closequotechar)
function unescape(T, s::AbstractString, escapechar, closequotechar)
if length(BUF.data) < sizeof(s)
resize!(BUF.data, sizeof(s))
end
Expand Down

0 comments on commit b845929

Please sign in to comment.