chore: refine ui details

This commit is contained in:
Lykin
2023-11-17 23:50:10 +08:00
parent ddc3868f22
commit 13f343977a
12 changed files with 204 additions and 182 deletions

View File

@@ -109,7 +109,7 @@ func autoDecode(str string) (value, resultDecode string) {
// pure digit content may incorrect regard as some encoded type, skip decode
if match, _ := regexp.MatchString(`^\d+$`, str); !match {
var ok bool
if len(str)%4 == 0 && !isSameChar(str) {
if len(str)%4 == 0 && len(str) >= 12 && !isSameChar(str) {
if value, ok = decodeBase64(str); ok {
resultDecode = types.DECODE_BASE64
return