From a22b898c0cd6bbb23d5b92fc5e9c8226ce78a5c5 Mon Sep 17 00:00:00 2001 From: "Chen, Tai-Lin" Date: Sun, 26 Nov 2023 23:12:36 +0800 Subject: [PATCH] improve quest exceptions --- quests/exceptions.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/quests/exceptions.yml b/quests/exceptions.yml index f972be3..3b7ee9c 100644 --- a/quests/exceptions.yml +++ b/quests/exceptions.yml @@ -52,11 +52,11 @@ exceptions: - condition: command: - - ^[Ii]s$ + - ^[Ii1]s$ responses: - type: narrative content: - - '!! `ls` 的首字母是小寫的 `L`,不是 `I` !!' + - '!! `ls` 的首字母是小寫的 `L` !!' - condition: command: @@ -65,3 +65,20 @@ exceptions: - type: narrative content: - '嗨~' + + # 需改進 + - condition: + command: + - folderl + responses: + - type: narrative + content: + - '`folder1` 的 `1` 是數字 `1`,不是小寫的 `L` !!' + + - condition: + command: + - filel + responses: + - type: narrative + content: + - '`file1` 的 `1` 是數字 `1`,不是小寫的 `L` !!'