mirror of
https://gitee.com/johng/gf.git
synced 2024-12-02 04:07:47 +08:00
remove the space trimming of the validation value for package gvalid
This commit is contained in:
parent
9b6936a4fb
commit
0f6f571ccb
@ -123,7 +123,8 @@ func doCheck(key string, value interface{}, rules string, messages interface{},
|
||||
}
|
||||
// It converts value to string and then does the validation.
|
||||
var (
|
||||
val = strings.TrimSpace(gconv.String(value))
|
||||
// Do not trim it as the space is also part of the value.
|
||||
val = gconv.String(value)
|
||||
data = make(map[string]string)
|
||||
errorMsgs = make(map[string]string)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user