diff --git a/modules/api/app/controller/strategy/strategy_controller.go b/modules/api/app/controller/strategy/strategy_controller.go index 74deec1ba..d3d5b83f3 100644 --- a/modules/api/app/controller/strategy/strategy_controller.go +++ b/modules/api/app/controller/strategy/strategy_controller.go @@ -135,7 +135,7 @@ type APIUpdateStrategyInput struct { func (this APIUpdateStrategyInput) CheckFormat() (err error) { validOp := regexp.MustCompile(`^(>|=|<|!)(=)?$`) - validRightValue := regexp.MustCompile(`^\d+$`) + validRightValue := regexp.MustCompile(`^\-?\d+(\.\d+)?$`) validTime := regexp.MustCompile(`^\d{2}:\d{2}$`) switch { case !validOp.MatchString(this.Op):