Match.jl icon indicating copy to clipboard operation
Match.jl copied to clipboard

Match no longer handling regex

Open esalesky opened this issue 10 years ago • 0 comments

behavior that worked with Match in 0.3:

const emptyline = r"^(\s*)$"
x = "   "
@match x begin
  emptyline(x) => print("nothing there")
  _            => print("else")
end

now throws:

ERROR: TypeError: isa: expected Type{T}, got Regex

esalesky avatar Jan 08 '16 22:01 esalesky