fix: update quest's exceptions

This commit is contained in:
Chen, Tai-Lin committed 2024-07-03 00:34:32 +08:00
1 parent 526b856de7
commit 6bbf70a258
1 file changed
+39 -71
+39 -71
View File
@@ -4,139 +4,107 @@ exceptions:
- '[\uff21-\uff3a\uff41-\uff5a]' - '[\uff21-\uff3a\uff41-\uff5a]'
responses: responses:
- type: narrative - type: narrative
content: content: |
- '!! 請使用半形英文字母 !!' !! 請使用半形英文字母 !!
- condition: - condition:
command: command:
- ' ' - ' '
responses: responses:
- type: narrative - type: narrative
content: content: |
- '!! 請使用半形空格 !!' !! 請使用半形空格 !!
- condition:
or:
- command:
- '`'
- command:
- \'
responses:
- type: narrative
content:
- '!! 不需要輸入上下引號 !!'
- condition: - condition:
command: command:
- ^echo\S$ - echo\S
responses: responses:
- type: narrative - type: narrative
content: content: |
- '!! `echo` 後面要加空格 !!' !! `echo` 後面要加空格 !!
- condition: - condition:
command: command:
- ^cd\S$ - cd\S
responses: responses:
- type: narrative - type: narrative
content: content: |
- '!! `cd` 後面要加空格 !!' !! `cd` 後面要加空格 !!
- condition: - condition:
command: command:
- ^ls\S$ - ls\S
responses: responses:
- type: narrative - type: narrative
content: content: |
- '!! `ls` 後面要加空格 !!' !! `ls` 後面要加空格 !!
- condition: - condition:
command: command:
- ^cat\S$ - cat\S
responses: responses:
- type: narrative - type: narrative
content: content: |
- '!! `cat` 後面要加空格 !!' !! `cat` 後面要加空格 !!
- condition: - condition:
command: command:
- ^touch\S$ - touch\S
responses: responses:
- type: narrative - type: narrative
content: content: |
- '!! `touch` 後面要加空格 !!' !! `touch` 後面要加空格 !!
- condition: - condition:
not: not:
command: command:
- ^rmdir$ - rmdir
command: command:
- ^rm\S$ - rm\S
responses: responses:
- type: narrative - type: narrative
content: content: |
- '!! `rm` 後面要加空格 !!' !! `rm` 後面要加空格 !!
- condition: - condition:
command: command:
- ^mv\S$ - mv\S
responses: responses:
- type: narrative - type: narrative
content: content: |
- '!! `mv` 後面要加空格 !!' !! `mv` 後面要加空格 !!
- condition: - condition:
command: command:
- ^mkdir\S$ - mkdir\S
responses: responses:
- type: narrative - type: narrative
content: content: |
- '!! `mkdir` 後面要加空格 !!' !! `mkdir` 後面要加空格 !!
- condition: - condition:
command: command:
- ^rmdir\S$ - rmdir\S
responses: responses:
- type: narrative - type: narrative
content: content: |
- '!! `rmdir` 後面要加空格 !!' !! `rmdir` 後面要加空格 !!
- condition: - condition:
command: command:
- ^cp\S$ - cp\S
responses: responses:
- type: narrative - type: narrative
content: content: |
- '!! `cp` 後面要加空格 !!' !! `cp` 後面要加空格 !!
- condition:
command:
- ^[Ii1]s$
responses:
- type: narrative
content:
- '!! `ls` 的首字母是小寫的 `L` !!'
- condition: - condition:
or:
command: command:
- 嗨 - 嗨
responses:
- type: narrative
content:
- '嗨~'
- condition:
command: command:
- folderl - '[Hh][Ii]'
responses: responses:
- type: narrative - type: narrative
content: content: |
- '`folder1` 的 `1` 是數字 `1`,不是小寫的 `L` !!' - 'Hi~'
- condition:
command:
- filel
responses:
- type: narrative
content:
- '`file1` 的 `1` 是數字 `1`,不是小寫的 `L` !!'