新建命令正则匹配功能改为直接导入命令

This commit is contained in:
fofolee
2024-05-07 13:07:08 +08:00
parent 897d597885
commit 545d4b3b31
5 changed files with 125 additions and 125 deletions

View File

@@ -37,17 +37,17 @@
"explain": "快速新建快捷命令",
"cmds": [
"新建快捷命令",
"NewCommand",
"NewCommand"
]
},
{
"code": "importcommand",
"explain": "导入快捷命令",
"cmds": [
{
"type": "regex",
"label": "新建快捷命令",
"match": "/^\\{[\\s\\S]*\"program\" *: *\".*\"[\\s\\S]*\"cmd\" *: *\".*\"[\\s\\S]*\\}$/i",
"maxNum": 1
},
{
"type": "regex",
"label": "新建快捷命令",
"match": "/^qc=eyJwcm9ncmFtIj/",
"label": "导入命令",
"match": "/(^\\{[\\s\\S]*\"program\" *: *\".*\"[\\s\\S]*\"cmd\" *: *\".*\"[\\s\\S]*\\}$)|(^qc=e)/i",
"maxNum": 1
}
]