types: better Status parsing
This commit is contained in:
parent
ee847f0f04
commit
dbde2687a2
|
@ -15,7 +15,8 @@ struct Status
|
|||
end
|
||||
|
||||
Status(code::String, meta::String) = Status(code[1], code[2], meta)
|
||||
Status(code::String) = Status(code[1], code[2], "")
|
||||
Status(code::String) =
|
||||
Status(code[1], code[2], length(code) > 2 ? String(strip(code[3:end])) : "")
|
||||
Status(code::Int, meta::String) = Status(string(code), meta)
|
||||
Status(code::Int) = Status(string(code))
|
||||
|
||||
|
|
Loading…
Reference in New Issue