From 3159a45de9e691ad758dcbc933446f61b7ae1940 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Thu, 14 Jul 2022 02:48:49 +0800 Subject: fix table matching issue and update doc. --- spec/inputs/switch.yue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'spec/inputs') diff --git a/spec/inputs/switch.yue b/spec/inputs/switch.yue index 36f9be6..04bb02e 100644 --- a/spec/inputs/switch.yue +++ b/spec/inputs/switch.yue @@ -139,10 +139,10 @@ do "#{a + b}" when 1, 2, 3, 4, 5 "number 1 - 5" - when {:alwaysMatch = "fallback"} - alwaysMatch + when {:matchAnyTable = "fallback"} + matchAnyTable else - "should not reach here" + "should not reach here unless it is not a table" nil -- cgit v1.2.3-55-g6feb