From 3c1afb92e1c4c45aa167a267aecf50e00f292150 Mon Sep 17 00:00:00 2001 From: "Chen, Tai-Lin" Date: Sun, 26 Nov 2023 23:17:02 +0800 Subject: [PATCH] improve exceptions --- quests/exceptions.yml | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/quests/exceptions.yml b/quests/exceptions.yml index 3b7ee9c..7ab256f 100644 --- a/quests/exceptions.yml +++ b/quests/exceptions.yml @@ -50,6 +50,41 @@ exceptions: content: - '!! `ls` 後面要加空格 !!' + - condition: + not: + command: + - ^rmdir$ + command: + - ^rm\S*$ + responses: + - type: narrative + content: + - '!! `rm` 後面要加空格 !!' + + - condition: + command: + - ^mv\S*$ + responses: + - type: narrative + content: + - '!! `mv` 後面要加空格 !!' + + - condition: + command: + - ^rmdir\S*$ + responses: + - type: narrative + content: + - '!! `rmdir` 後面要加空格 !!' + + - condition: + command: + - ^cp\S*$ + responses: + - type: narrative + content: + - '!! `cp` 後面要加空格 !!' + - condition: command: - ^[Ii1]s$ @@ -66,7 +101,6 @@ exceptions: content: - '嗨~' - # 需改進 - condition: command: - folderl