Skip to content

Commit

Permalink
Fix for is_valid(_LatinChr, ...)
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottPJones committed Oct 21, 2018
1 parent 9bf7bee commit 78cdb25
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/traits.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ _isvalid(::ValidatedStyle, ::Type{ASCIICharSet}, ::Type{T}, val) where {T<:CharS
where {T<:Union{Text2CharSet, Text4CharSet, UCS2CharSet, UTF32CharSet}}) =
is_latin(val)

(_isvalid(::ValidatedStyle, ::Type{_LatinCharSet}, ::Type{T}, val)
where {T<:Union{Text2CharSet, Text4CharSet, UCS2CharSet, UTF32CharSet}}) =
is_latin(val)

(_isvalid(::ValidatedStyle, ::Type{UCS2CharSet}, ::Type{T}, val)
where {T<:Union{Text2CharSet, Text4CharSet, UTF32CharSet}}) =
is_bmp(val)
Expand Down

0 comments on commit 78cdb25

Please sign in to comment.