steveorourke
e40bece342
Add support for jwt validation ( #783 )
2021-07-25 21:10:57 -07:00
Dean Karn
95ac68b6d7
fix url_encoded regex ( #769 )
2021-05-11 17:37:28 -07:00
Dean Karn
d07eb88fb0
Pr cleanup ( #767 )
...
* cleanup after merging PRs
* Add maintainer info +
2021-05-06 07:52:12 -07:00
Oleksii Kulikov
c2066206fe
Add BIC ISO format validator ( #758 )
2021-05-06 06:38:34 -07:00
Brandon Lee
704a814277
accept 0x(0X) start in 'hexadecimal' tag ( #620 )
...
* accept hexadecimal which starts with 0x(0X) optionally
2020-09-27 12:10:32 -07:00
Dean Karn
50166a5a06
Merge branch 'master' into bugfix/fqdn
2020-05-20 23:06:53 -07:00
Giuliano Scaglioni
b610155475
format code
2020-05-20 21:16:17 -03:00
Giuliano Scaglioni
7d6236a898
add updated regex for fqdn
2020-05-20 21:15:27 -03:00
amiraliucsc
18fba4ba8a
Fix the regex for RFC952 hostname validator
...
Signed-off-by: amiraliucsc <amirali7089@gmail.com>
2020-04-19 05:22:13 +00:00
Ravi Terala
893747e5ee
Add hostname_port validator feature
2020-01-03 11:30:08 -08:00
Taylor
e7c70798c9
Add e.164 support
2019-12-24 20:08:33 -08:00
Dean Karn
a6a294bfeb
Merge pull request #541 from JonathanWThom/jt/space-separated-oneof
...
Adds ability to validate oneof for space separated strings
2019-12-24 10:54:55 -08:00
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
2019-11-21 21:26:59 -08:00
Jonathan Thom
685d3e21f3
Makes regex constant & moves single quote replace logic to parseOneOfParam2
2019-11-20 20:04:39 -08:00
criherna
38f91ec1a1
Merge branch 'master' into fix-hostname-regexp
2019-05-16 15:28:29 +02:00
criherna
9dedb06449
fix hostname regex
2019-05-16 13:31:59 +02:00
Dean Karn
c0a5f73741
Merge pull request #463 from benpaxton-hf/fix-email-regex
...
Fix email regex
2019-03-31 06:29:18 -07:00
Ben Paxton
9099388d96
Fix email regex
2019-03-27 17:01:11 +00:00
rucas
dbd65cccbc
better SSN regex
...
* does not allow 00 group number
* does not allow 0000 serial number
2019-03-05 16:01:59 -08:00
Rohan Sathe
76020d061e
Fixes #26 ( #437 )
2019-01-27 21:00:13 -08:00
heatwole
0a9b75fbfd
Adding html and url encoding and updating docs
2018-06-28 18:11:36 -05:00
Joachim Adomeit
379fb67047
Fix for Email - Hostname is not validated correctly #359
2018-05-09 16:50:03 +02:00
Dean Karn
b5512bc1ff
Merge branch 'patch-1' of https://github.com/QuestofIranon/validator into QuestofIranon-patch-1
2018-04-09 22:31:46 -07:00
josh
ce6284a6fc
confirm only all upper or all lower case address are valid
2018-04-08 19:38:12 -07:00
josh
6deddf27eb
proper bech32 address validation
2018-04-08 19:38:12 -07:00
josh
ba5836f763
add bitcoin and ethereum address regexes
2018-04-06 19:58:09 -07:00
Kyriakos Georgiou
030800a855
Add validation for base64 URL safe values
2018-03-28 01:24:00 -04:00
Dean Karn
5e036656b8
Add hostname_rfc1123 validation
2018-02-15 08:50:04 -08:00
Bruno Lorenz
dbd50b343f
Code hygiene
...
- Minor performance improve for FQDN validation
- Fix typo in documentation
- Simplified hostname regex
2017-08-05 17:07:23 +02:00
Bruno Lorenz
08796346a0
Append new validations
...
- hostname
- fqdn
2017-08-05 09:01:57 +02:00
Dean Karn
4d76b0dd81
Add alphaunicode & aplhanumericunicode
...
- added unicode variants of alpha & alphanumeric
2016-11-30 08:37:03 -05:00
joeybloggs
8119861695
inline Regex calls
2015-09-02 20:57:31 -04:00
joeybloggs
41b4a43989
Updated documentation for new v6
2015-07-19 10:48:16 -04:00
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.
2015-07-14 22:45:37 -04:00
joeybloggs
35aff710e4
added many new validator + tests + documentation:
...
ascii
printascii
multibyte
datauri
latitude
longitude
ssn
2015-06-17 09:02:26 -04:00
joeybloggs
7aa70841bc
add uuid, uuid3, uuid4 and uuid5 validators + tests + documentation
2015-06-17 08:03:31 -04:00
joeybloggs
20d9b7909f
add isbn, isbn10 and isbn validators + tests + documentation
2015-06-16 23:22:36 -04:00
joeybloggs
05e0fe1f85
updated various regex's to remove any capturing groups
2015-06-16 22:12:36 -04:00
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.
2015-06-16 22:07:30 -04:00
Dean Karn
1d008b4ad2
add base64 validate as requested in issue #30
2015-04-19 10:13:14 -04:00
Dean Karn
1e1442d02c
merge changes from Pull Request #24 from @manucorporat
2015-04-08 18:23:20 -04:00
Dean Karn
4e4a2a2b8e
issue-#1
...
add url validation and test cases
add uri validation and test cases
2015-02-25 15:08:22 -05:00
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
2015-02-15 10:03:12 -05:00
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
2015-02-14 22:16:03 -05:00
Dean Karn
e8eadfc326
issue-#1
...
add alpha validation function + Test code
add alphanumeric validation function + Test code
2015-02-14 21:26:15 -05:00