Skip to content

Commit

Permalink
feat(xtintin): VARS 模糊查找支持汉字
Browse files Browse the repository at this point in the history
  • Loading branch information
dzpao committed Sep 4, 2024
1 parent 72d34e8 commit f2e677a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions plugins/lib/xtintin/cmds.tin
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ PaoTin++ © 2020~2023 的所有版权均由担子炮(dzp <danzipao@gmail.com>)
#local class {$info[VARIABLES][+$index][class]};
#local value {$info[VARIABLES][+$index][arg2]};
#local nest {$info[VARIABLES][+$index][nest]};
#local cnName {};

#if { "$class" == "" && "$pattern" != "all" } {
#continue;
Expand All @@ -208,7 +209,11 @@ PaoTin++ © 2020~2023 的所有版权均由担子炮(dzp <danzipao@gmail.com>)
#local class {未分组};
};

#if { "$pattern" != "{|all}" && "$class/$name" != "%*$pattern%*" } {
#if { &gPaoTinVars[$name][] > 0 } {
#local cnName {$gPaoTinVars[$name][cnName]};
};

#if { "$pattern" != "{|all}" && "$class/$name/$cnName" != "%*$pattern%*" } {
#continue;
};

Expand Down Expand Up @@ -247,7 +252,7 @@ PaoTin++ © 2020~2023 的所有版权均由担子炮(dzp <danzipao@gmail.com>)
{$type}
{$value};

#if { "$gPaoTinVars[$name]" != "" } {
#if { &gPaoTinVars[$name][] > 0 } {
#echo {$format}
{}
{ ╰── $gPaoTinVars[$name][cnName]}
Expand Down

0 comments on commit f2e677a

Please sign in to comment.