Skip to content

Commit

Permalink
fix for Julia 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pfitzseb committed Jun 7, 2021
1 parent 907cceb commit 550f0b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,9 @@ function valid_escaped_seq(s::AbstractString)
end
return n <= 0x10ffff
else
@static if VERSION < v"1.1.0"
c = string(c)
end
return ncodeunits(c) == 1 && isempty(a)
end
end
Expand Down

0 comments on commit 550f0b6

Please # to comment.