增加图片匹配

This commit is contained in:
fofolee
2022-04-10 12:29:29 +08:00
parent 0cd878adfb
commit c78581bc76
4 changed files with 13 additions and 6 deletions

View File

@@ -90,6 +90,13 @@ const specialVars = {
match: /{{WindowInfo(.*?)}}/mg,
repl: jsonVar => handlingJsonVar(jsonVar, "WindowInfo")
},
MatchImage: {
name: "MatchImage",
label: "{{MatchImage}}",
desc: "匹配到图片的 DataUrl",
match: /{{MatchImage}}/mg,
repl: () => quickcommand.enterData.payload
},
SelectFile: {
name: "SelectFile",
label: "{{SelectFile}}",