mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-15 05:50:27 +08:00
变量修饰符增加quote
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
||||
stringutil "github.com/iwind/TeaGo/utils/string"
|
||||
"net/url"
|
||||
"regexp"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync"
|
||||
)
|
||||
@@ -183,6 +184,9 @@ func doStringModifiers(value string, modifiers []string) string {
|
||||
value = strings.ToLower(value)
|
||||
case "toUpperCase":
|
||||
value = strings.ToUpper(value)
|
||||
case "quote":
|
||||
value = strconv.Quote(value)
|
||||
|
||||
}
|
||||
}
|
||||
return value
|
||||
|
||||
Reference in New Issue
Block a user