@@ -300,39 +300,39 @@ func IsISBN10(v *Validate, topStruct reflect.Value, currentStructOrField reflect
300300 return checksum % 11 == 0
301301}
302302
303- // ExcludesRune is the validation function for validating that the field's value does not contain the rune specified withing the param.
303+ // ExcludesRune is the validation function for validating that the field's value does not contain the rune specified within the param.
304304// NOTE: This is exposed for use within your own custom functions and not intended to be called directly.
305305func ExcludesRune (v * Validate , topStruct reflect.Value , currentStructOrField reflect.Value , field reflect.Value , fieldType reflect.Type , fieldKind reflect.Kind , param string ) bool {
306306 return ! ContainsRune (v , topStruct , currentStructOrField , field , fieldType , fieldKind , param )
307307}
308308
309- // ExcludesAll is the validation function for validating that the field's value does not contain any of the characters specified withing the param.
309+ // ExcludesAll is the validation function for validating that the field's value does not contain any of the characters specified within the param.
310310// NOTE: This is exposed for use within your own custom functions and not intended to be called directly.
311311func ExcludesAll (v * Validate , topStruct reflect.Value , currentStructOrField reflect.Value , field reflect.Value , fieldType reflect.Type , fieldKind reflect.Kind , param string ) bool {
312312 return ! ContainsAny (v , topStruct , currentStructOrField , field , fieldType , fieldKind , param )
313313}
314314
315- // Excludes is the validation function for validating that the field's value does not contain the text specified withing the param.
315+ // Excludes is the validation function for validating that the field's value does not contain the text specified within the param.
316316// NOTE: This is exposed for use within your own custom functions and not intended to be called directly.
317317func Excludes (v * Validate , topStruct reflect.Value , currentStructOrField reflect.Value , field reflect.Value , fieldType reflect.Type , fieldKind reflect.Kind , param string ) bool {
318318 return ! Contains (v , topStruct , currentStructOrField , field , fieldType , fieldKind , param )
319319}
320320
321- // ContainsRune is the validation function for validating that the field's value contains the rune specified withing the param.
321+ // ContainsRune is the validation function for validating that the field's value contains the rune specified within the param.
322322// NOTE: This is exposed for use within your own custom functions and not intended to be called directly.
323323func ContainsRune (v * Validate , topStruct reflect.Value , currentStructOrField reflect.Value , field reflect.Value , fieldType reflect.Type , fieldKind reflect.Kind , param string ) bool {
324324 r , _ := utf8 .DecodeRuneInString (param )
325325
326326 return strings .ContainsRune (field .String (), r )
327327}
328328
329- // ContainsAny is the validation function for validating that the field's value contains any of the characters specified withing the param.
329+ // ContainsAny is the validation function for validating that the field's value contains any of the characters specified within the param.
330330// NOTE: This is exposed for use within your own custom functions and not intended to be called directly.
331331func ContainsAny (v * Validate , topStruct reflect.Value , currentStructOrField reflect.Value , field reflect.Value , fieldType reflect.Type , fieldKind reflect.Kind , param string ) bool {
332332 return strings .ContainsAny (field .String (), param )
333333}
334334
335- // Contains is the validation function for validating that the field's value contains the text specified withing the param.
335+ // Contains is the validation function for validating that the field's value contains the text specified within the param.
336336// NOTE: This is exposed for use within your own custom functions and not intended to be called directly.
337337func Contains (v * Validate , topStruct reflect.Value , currentStructOrField reflect.Value , field reflect.Value , fieldType reflect.Type , fieldKind reflect.Kind , param string ) bool {
338338 return strings .Contains (field .String (), param )
0 commit comments