feat: 🏡 make apps
This commit is contained in:
@@ -5,7 +5,6 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"regexp"
|
||||
|
||||
"gitea.loveuer.com/yizhisec/pkg3/logger"
|
||||
"yizhisec.com/hsv2/forge/internal/opt"
|
||||
@@ -38,7 +37,7 @@ func WithRedisPassword(password string) RedisOpt {
|
||||
|
||||
func WithRedisStorage(storage string) RedisOpt {
|
||||
return func(o *redisOpt) {
|
||||
if matched, _ := regexp.MatchString(`^\d+(\.\d+)?[EPTGMK]i?$`, storage); matched {
|
||||
if opt.StorageSizeReg.MatchString(storage) {
|
||||
o.Storage = storage
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user