diff options
-rw-r--r-- | server/src/matcher/definition.lua | 3 | ||||
-rw-r--r-- | server/test/definition/bug.lua | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/server/src/matcher/definition.lua b/server/src/matcher/definition.lua index 453dc291..11b45995 100644 --- a/server/src/matcher/definition.lua +++ b/server/src/matcher/definition.lua @@ -167,7 +167,8 @@ function mt:searchSimple(simple) end function mt:searchBinary(exp) - return self:searchExp(exp[1]) or self:searchExp(exp[2]) + self:searchExp(exp[1]) + self:searchExp(exp[2]) end function mt:searchUnary(exp) diff --git a/server/test/definition/bug.lua b/server/test/definition/bug.lua index 24dd14b0..318a776a 100644 --- a/server/test/definition/bug.lua +++ b/server/test/definition/bug.lua @@ -34,3 +34,8 @@ TEST [[ local <!a!> (<?a?> / b)() ]] + +TEST [[ +local <!args!> +io.load(root / <?args?>.source / 'API' / path) +]] |