You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using @view of StringView to match against some regex, I get an error
TypeError: in typeassert, expected SubString{SubString{StringView{Base.CodeUnits{UInt8, String}}}}, got a value of type SubString{StringView{Base.CodeUnits{UInt8, String}}}
Error comes from return type assert in convert(::Type{SubString{S}}, s::AbstractString) which is in julia' base.
MRE:
using StringViews
str_view = StringView("123-456")
match(r"(?<group>.*)", @view str_view[1:3])
Package version:
(@v1.10) pkg> st StringViews
Status `~/.julia/environments/v1.10/Project.toml`
[354b36f9] StringViews v1.3.3
The text was updated successfully, but these errors were encountered:
When using
@view
ofStringView
to match against some regex, I get an errorError comes from return type assert in
convert(::Type{SubString{S}}, s::AbstractString)
which is in julia' base.MRE:
Package version:
The text was updated successfully, but these errors were encountered: