Markus Tenghamn
8fe074c546
Added ulid validation ( #826 )
3 years ago
Kazuki Onishi
ec2071b383
Add DNS RFC 1035 label format validator ( #833 )
3 years ago
nesty92
c67d01d610
Add support for all hex color notations ( #866 ) ( #867 )
3 years ago
steveorourke
e40bece342
Add support for jwt validation ( #783 )
3 years ago
Dean Karn
95ac68b6d7
fix url_encoded regex ( #769 )
4 years ago
Dean Karn
d07eb88fb0
Pr cleanup ( #767 )
...
* cleanup after merging PRs
* Add maintainer info +
4 years ago
Oleksii Kulikov
c2066206fe
Add BIC ISO format validator ( #758 )
4 years ago
Brandon Lee
704a814277
accept 0x(0X) start in 'hexadecimal' tag ( #620 )
...
* accept hexadecimal which starts with 0x(0X) optionally
4 years ago
Giuliano Scaglioni
b610155475
format code
5 years ago
Giuliano Scaglioni
7d6236a898
add updated regex for fqdn
5 years ago
amiraliucsc
18fba4ba8a
Fix the regex for RFC952 hostname validator
...
Signed-off-by: amiraliucsc <amirali7089@gmail.com>
5 years ago
Ravi Terala
893747e5ee
Add hostname_port validator feature
5 years ago
Taylor
e7c70798c9
Add e.164 support
5 years ago
Jonathan Thom
bb5fd36827
Improves accuracy of datauri regex
...
Fixes Or Enhances https://github.com/go-playground/validator/issues/518 .
Make sure that you've checked the boxes below before you submit PR:
[x] Tests exist or have been written that cover this particular change.
Change Details:
The datauri validation was not allowing certain valid strings; this
commit updates the regex to meet RFC 2397. I drew heavily on this gist
https://gist.github.com/khanzadimahdi/bab8a3416bdb764b9eda5b38b35735b8 ,
but had to make a few updates to remove some negative lookaheads (which
Go doesn't allow afaik), and to account for the way the `isDataURI`
function works - it validates the base64 separately from the other parts
of the uri.
@go-playground/admins
5 years ago
Jonathan Thom
685d3e21f3
Makes regex constant & moves single quote replace logic to parseOneOfParam2
5 years ago
criherna
9dedb06449
fix hostname regex
6 years ago
Ben Paxton
9099388d96
Fix email regex
6 years ago
rucas
dbd65cccbc
better SSN regex
...
* does not allow 00 group number
* does not allow 0000 serial number
6 years ago
Rohan Sathe
76020d061e
Fixes #26 ( #437 )
6 years ago
heatwole
0a9b75fbfd
Adding html and url encoding and updating docs
7 years ago
Joachim Adomeit
379fb67047
Fix for Email - Hostname is not validated correctly #359
7 years ago
josh
ce6284a6fc
confirm only all upper or all lower case address are valid
7 years ago
josh
6deddf27eb
proper bech32 address validation
7 years ago
josh
ba5836f763
add bitcoin and ethereum address regexes
7 years ago
Kyriakos Georgiou
030800a855
Add validation for base64 URL safe values
7 years ago
Dean Karn
5e036656b8
Add hostname_rfc1123 validation
7 years ago
Bruno Lorenz
dbd50b343f
Code hygiene
...
- Minor performance improve for FQDN validation
- Fix typo in documentation
- Simplified hostname regex
7 years ago
Bruno Lorenz
08796346a0
Append new validations
...
- hostname
- fqdn
7 years ago
Dean Karn
4d76b0dd81
Add alphaunicode & aplhanumericunicode
...
- added unicode variants of alpha & alphanumeric
8 years ago
joeybloggs
8119861695
inline Regex calls
9 years ago
joeybloggs
41b4a43989
Updated documentation for new v6
10 years ago
joeybloggs
019c5fc4ac
Finished converting baked in functions & some updates
...
completed all validations function conversion.
updated omitempty check to continue if all ok instead of
passing tag to be validated.
10 years ago
joeybloggs
35aff710e4
added many new validator + tests + documentation:
...
ascii
printascii
multibyte
datauri
latitude
longitude
ssn
10 years ago
joeybloggs
7aa70841bc
add uuid, uuid3, uuid4 and uuid5 validators + tests + documentation
10 years ago
joeybloggs
20d9b7909f
add isbn, isbn10 and isbn validators + tests + documentation
10 years ago
joeybloggs
05e0fe1f85
updated various regex's to remove any capturing groups
10 years ago
joeybloggs
5db5165e2c
update rub and reba regex
...
rejects now properly test for RGB 255 and RGB using percentages, before it allowed mixing of percentages or numbers between 0-255 but it's either or now.
10 years ago
Dean Karn
1d008b4ad2
add base64 validate as requested in issue #30
10 years ago
Dean Karn
1e1442d02c
merge changes from Pull Request #24 from @manucorporat
10 years ago
Dean Karn
4e4a2a2b8e
issue-#1
...
add url validation and test cases
add uri validation and test cases
10 years ago
Dean Karn
beb87b1d05
issue-#1
...
add rgb color validation function + Test Code
add rgba color validation function + Test Code
add hsl color validation function + Test Code
add hula color validation function + Test Code
10 years ago
Dean Karn
dfe8a4e7fa
issue-#1
...
add numeric validation function + Test Cases
add number validation function + Test Cases
add hexadecimal validation function + Test Cases
add hexcolor validation function + Test Cases
add email validation function + Test Cases
10 years ago
Dean Karn
e8eadfc326
issue-#1
...
add alpha validation function + Test code
add alphanumeric validation function + Test code
10 years ago