用户变量样式美化

This commit is contained in:
fofolee
2022-05-01 23:19:34 +08:00
parent a45665af73
commit 21d696a4a5
2 changed files with 7 additions and 3 deletions

View File

@@ -148,7 +148,7 @@ const specialVars = {
userData: {
name: "userData",
label: "{{usr:}}",
desc: "用户设置的变量",
desc: "用户设置的变量,类似一个全局配置项",
match: /{{usr:(.*?)}}/mg,
repl: (text, userData) => {
let filterd = userData.filter(x => x.id === text.slice(6, -2))