Fix lint and format code in core dir
This commit is contained in:
@@ -235,8 +235,11 @@ func (v *Validation) Tel(obj interface{}, key string) *Result {
|
||||
|
||||
// Phone Test that the obj is chinese mobile or telephone number if type is string
|
||||
func (v *Validation) Phone(obj interface{}, key string) *Result {
|
||||
return v.apply(Phone{Mobile{Match: Match{Regexp: mobilePattern}},
|
||||
Tel{Match: Match{Regexp: telPattern}}, key}, obj)
|
||||
return v.apply(Phone{
|
||||
Mobile{Match: Match{Regexp: mobilePattern}},
|
||||
Tel{Match: Match{Regexp: telPattern}},
|
||||
key,
|
||||
}, obj)
|
||||
}
|
||||
|
||||
// ZipCode Test that the obj is chinese zip code if type is string
|
||||
|
||||
@@ -605,7 +605,6 @@ func TestCanSkipAlso(t *testing.T) {
|
||||
if !b {
|
||||
t.Fatal("validation should be passed")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func TestFieldNoEmpty(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user