Skip to content

Commit 3e73578

Browse files
committed
chore(exprSelector): Compatible with single mode or the expression with the name @
Change-Id: I09a94365d7913e9104d0ed1269de10feb6948eef
1 parent e13a406 commit 3e73578

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tagexpr.go

+3
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,9 @@ func (t *TagExpr) Eval(exprSelector string) interface{} {
430430
// Compatible with single mode or the expression with the name @
431431
if strings.HasSuffix(exprSelector, "@") {
432432
exprSelector = exprSelector[:len(exprSelector)-1]
433+
if strings.HasSuffix(exprSelector, "@") {
434+
exprSelector = exprSelector[:len(exprSelector)-1]
435+
}
433436
expr, ok = t.s.exprs[exprSelector]
434437
}
435438
if !ok {

0 commit comments

Comments
 (0)