mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-09-23 20:44:42 +08:00
新建命令正则匹配功能改为直接导入命令
This commit is contained in:
@@ -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
|
||||
}
|
||||
]
|
||||
|
Reference in New Issue
Block a user