From 7807a1f36fbbe973a631f7a158a8b4860213f91e Mon Sep 17 00:00:00 2001 From: John Bailon Date: Sat, 2 May 2020 16:12:58 +0800 Subject: [PATCH 1/2] Add number validator in documentation --- doc.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/doc.go b/doc.go index 291c629..6c3494b 100644 --- a/doc.go +++ b/doc.go @@ -620,7 +620,14 @@ This validates that a string value contains unicode alphanumeric characters only Usage: alphanumunicode -Numeric +Number + +This validates that a string value contains number values only. +For integers or float it returns true. + + Usage: numeric + + Numeric This validates that a string value contains a basic numeric value. basic excludes exponents etc... From 198646cbd10e0861e3593ff2fe231031622d1ab4 Mon Sep 17 00:00:00 2001 From: John Bailon Date: Sat, 2 May 2020 16:16:55 +0800 Subject: [PATCH 2/2] Add number validator in documentation --- doc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc.go b/doc.go index 6c3494b..0e93934 100644 --- a/doc.go +++ b/doc.go @@ -625,9 +625,9 @@ Number This validates that a string value contains number values only. For integers or float it returns true. - Usage: numeric + Usage: number - Numeric +Numeric This validates that a string value contains a basic numeric value. basic excludes exponents etc...