respect-validation/library/Rules
Brian Johnson f8c90fa368
Fix Regex for Canadian postal code
Removes the errant space in the CA PostalCode regex.
This space was introduced by 5a067fa.

It also adds unit tests for the CA PostalCode to validate
the fix.

Reviewed-by: Emmerson Siqueira <emmersonsiqueira@gmail.com>
2018-11-04 22:58:45 +01:00
..
Locale Create "IdentityCard" rule 2016-01-13 22:57:11 -02:00
SubdivisionCode Update French subdivision codes 2018-05-19 16:18:28 +02:00
AbstractComposite.php Fix wrong behavior when using templates 2018-07-02 07:57:21 +02:00
AbstractCtypeRule.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
AbstractFilterRule.php Make all rules mandatory 2015-10-07 01:00:39 -03:00
AbstractInterval.php Fix casting error in AbstractInterval classes 2018-07-28 05:01:58 +02:00
AbstractRegexRule.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
AbstractRelated.php Fix wrong behaviour on AbstractRelated 2016-09-17 20:23:38 +02:00
AbstractRule.php Complete tests for "AbstractRule" class 2015-10-18 16:22:43 -02:00
AbstractSearcher.php Make all rules mandatory 2015-10-07 01:00:39 -03:00
AbstractWrapper.php Fix some coding standards with php-cs-fixer 2016-03-04 21:42:27 -03:00
Age.php Update some files permissions 2015-07-21 11:22:33 -03:00
AllOf.php Increase code coverage of rules 2015-10-19 14:17:47 -02:00
Alnum.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Alpha.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
AlwaysInvalid.php Increase code coverage of rules 2015-10-19 14:17:47 -02:00
AlwaysValid.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
ArrayType.php Create "ArrayType" rule 2015-10-18 18:01:11 -02:00
ArrayVal.php Refactor "ArrayVal" rule and add integration tests 2015-10-18 18:50:07 -02:00
Attribute.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Bank.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
BankAccount.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Base.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Between.php Make all rules inclusive by default 2015-10-14 13:10:20 -03:00
Bic.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
BoolType.php Rename rule "Bool" to "BoolType" 2015-10-07 11:30:29 -03:00
BoolVal.php Create "BoolVal" rule 2015-10-21 01:35:05 -03:00
Bsn.php Small coding standards and docs improvements 2015-10-24 01:32:07 -02:00
Call.php Use short array syntax 2015-10-17 22:56:32 -03:00
CallableType.php Create "CallableType" rule 2015-08-20 01:29:00 -03:00
Callback.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Charset.php Use short array syntax 2015-10-17 22:56:32 -03:00
Cnh.php Replace CNH validation algorithm 2016-09-18 13:25:18 +02:00
Cnpj.php Fix "Cnpj" rule 2017-01-25 17:41:21 +01:00
Cntrl.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Consonant.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Contains.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Countable.php Create "Countable" rule 2015-10-18 11:37:50 -02:00
CountryCode.php CountryCode inherits from AbstractRule instead 2015-10-26 13:35:13 -02:00
Cpf.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
CreditCard.php Allow the define brands for credit card validation 2016-04-06 16:42:49 -03:00
CurrencyCode.php Fix currency code for Belarusian Ruble 2017-10-16 10:16:47 +02:00
Date.php Fix wrong behavior of "Date" rule 2018-08-29 21:46:53 +02:00
Digit.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Directory.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Domain.php Change conditions for Domain validation 2018-01-02 22:24:43 +01:00
Each.php Rename "Iterable" to "IterableType" 2016-08-03 10:43:33 +02:00
Email.php Make sure that "Email" only validates strings 2018-10-09 05:28:51 +02:00
EndsWith.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Equals.php Remove identical checking from "Equals" rule 2015-10-13 13:29:31 -03:00
Even.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Executable.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Exists.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Extension.php Create "Extension" rule 2015-06-18 23:07:50 -03:00
Factor.php Use short array syntax 2015-10-17 22:56:32 -03:00
FalseVal.php Rename rule "False" to "FalseVal" 2015-10-07 11:36:31 -03:00
Fibonacci.php Create "Fibonacci" rule 2016-02-13 14:02:21 -02:00
File.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
FilterVar.php Use short array syntax 2015-10-17 22:56:32 -03:00
Finite.php Create "Finite" rule 2015-08-20 01:28:56 -03:00
FloatType.php Create "FloatType" rule 2015-10-18 16:57:49 -02:00
FloatVal.php Rename rule "Float" to "FloatVal" 2015-10-07 11:42:37 -03:00
Graph.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
HexRgbColor.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Identical.php Create "Identical" rule 2015-10-13 13:29:34 -03:00
IdentityCard.php Create "IdentityCard" rule 2016-01-13 22:57:11 -02:00
Image.php Change file mode of "Image" rule 2016-09-19 09:32:42 +02:00
Imei.php Create "Imei" rule 2015-10-23 07:53:59 -02:00
In.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Infinite.php Create "Infinite" rule 2015-08-20 01:28:59 -03:00
Instance.php Use short array syntax 2015-10-17 22:56:32 -03:00
IntType.php Create "IntType" rule 2015-10-16 23:43:01 -03:00
IntVal.php fix IntVal() leading zero behavior 2018-08-01 16:06:54 +03:00
Ip.php Use short array syntax 2015-10-17 22:56:32 -03:00
Iterable.php Rename "Iterable" to "IterableType" 2016-08-03 10:43:33 +02:00
IterableType.php Rename "Iterable" to "IterableType" 2016-08-03 10:43:33 +02:00
Json.php Improvements on JSON rule 2015-10-19 11:57:42 -02:00
Key.php Implements numeric Key/KeyNested Addressing 2015-10-22 10:35:58 -02:00
KeyNested.php Always check the type then executing KeyNested 2016-09-12 18:06:10 +02:00
KeySet.php Fixes 'KeySet' rule when input is not array type 2016-05-05 13:01:04 +02:00
KeyValue.php Use short array syntax 2015-10-17 22:56:32 -03:00
LanguageCode.php Create "LanguageCode" rule 2015-10-26 23:12:21 -03:00
LeapDate.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
LeapYear.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Length.php Fix some coding standards with php-cs-fixer 2016-03-04 21:42:27 -03:00
Lowercase.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
MacAddress.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Max.php Fix casting error in AbstractInterval classes 2018-07-28 05:01:58 +02:00
Mimetype.php The finfo::file() accepts only valid files 2015-08-26 19:46:51 -03:00
Min.php Fix casting error in AbstractInterval classes 2018-07-28 05:01:58 +02:00
MinimumAge.php Throw an exception when age is not an integer 2016-04-23 21:43:19 -03:00
Multiple.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Negative.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
NfeAccessKey.php Small coding standards and docs improvements 2015-10-24 01:32:07 -02:00
No.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
NoneOf.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Not.php Define names for the child of Not rule 2016-02-13 13:48:10 -02:00
NotBlank.php Create "NotBlank" rule 2015-10-14 01:05:42 -03:00
NotEmpty.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
NotOptional.php Use short array syntax 2015-10-17 22:56:32 -03:00
NoWhitespace.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
NullType.php Rename rule "NullValue" to "NullType" 2015-10-07 12:44:13 -03:00
Numeric.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
ObjectType.php Rename rule "Object" to "ObjectType" 2015-10-07 12:44:19 -03:00
Odd.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
OneOf.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Optional.php Use short array syntax 2015-10-17 22:56:32 -03:00
PerfectSquare.php Merge branch '0.9' into 1.0 2015-11-06 12:25:14 -02:00
Pesel.php Fix Pesel validator when first char is zero 2016-07-01 16:22:12 +02:00
Phone.php Improve "Phone" rule 2017-10-17 09:51:09 +02:00
PhpLabel.php Create "PhpLabel" rule 2016-03-04 21:48:25 -03:00
Positive.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
PostalCode.php Fix Regex for Canadian postal code 2018-11-04 22:58:45 +01:00
PrimeNumber.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Prnt.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Punct.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Readable.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Regex.php Prevent "Regex" to process non-string inputs 2016-10-29 15:21:14 +02:00
ResourceType.php Rename rule "Resource" to "ResourceType" 2015-10-07 12:44:19 -03:00
Roman.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
ScalarVal.php Rename rule "Scalar" to "ScalarVal" 2015-10-07 12:44:20 -03:00
Sf.php Use short array syntax 2015-10-17 22:56:32 -03:00
Size.php Use short array syntax 2015-10-17 22:56:32 -03:00
Slug.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Space.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
StartsWith.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
StringType.php Rename rule "String" to "StringType" 2015-10-07 11:52:03 -03:00
SubdivisionCode.php Fix bugs on "SubdivisionCode" rule 2015-09-22 10:08:17 -03:00
SymbolicLink.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Tld.php Update TLD list with version 2018100800 from IANA 2018-10-09 06:03:51 +02:00
TrueVal.php Rename rule "True" to "TrueVal" 2015-10-07 11:38:24 -03:00
Type.php Use short array syntax 2015-10-17 22:56:32 -03:00
Uploaded.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Uppercase.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Url.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Version.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
VideoUrl.php Small coding standards and docs improvements 2015-10-24 01:32:07 -02:00
Vowel.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
When.php Use short array syntax 2015-10-17 22:56:32 -03:00
Writable.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Xdigit.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Yes.php Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Zend.php Use short array syntax 2015-10-17 22:56:32 -03:00