Skip to content

Commit 2cbb6b2

Browse files
committed
Fixes Matrix parse issue
The behavior of Applicable function has changed in v0.6, due to this change, the matrix parsing was not happening on v0.6, this commit fixes that issue.
1 parent c62deef commit 2cbb6b2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/APIResponder.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ end
9090

9191
"""call the actual API method, and send the return value back as response"""
9292
function call_api(api::APISpec, conn::APIResponder, args, data::Dict{Symbol,Any})
93-
try
94-
if !applicable(api.fn, args...)
93+
try
94+
if !applicable(api.fn, args...) || ((api.fn === (*) || api.fn === (/) || api.fn === (\)) && all(x->isa(x,Vector), args))
9595
narrow_args!(args)
9696
end
9797
result = dynamic_invoke(conn, api.fn, args...; data...)

0 commit comments

Comments
 (0)