|
|
@@ -1,4 +1,4 @@ |
|
|
|
package utils |
|
|
|
package zhios_tool_utils |
|
|
|
|
|
|
|
import ( |
|
|
|
"encoding/base64" |
|
|
@@ -95,7 +95,6 @@ func base64Encode(encode int) *base64.Encoding { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func JudgeBase64(str string) bool { |
|
|
|
pattern := "^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)$" |
|
|
|
matched, err := regexp.MatchString(pattern, str) |
|
|
|