Skip to content
This repository was archived by the owner on Jul 1, 2020. It is now read-only.

Commit d475e27

Browse files
committed
typo
1 parent c542a1f commit d475e27

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

readme.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,8 @@ All validators are written as `snake_case` but it's up to the user's taste and c
163163
* `date_us_short_max:d` Date must follow US short format and is lower or equal than date (d)
164164
* `date_us_short_min:d` Date must follow US short format and is higher or equal than date (d)
165165
* `different` alias of `different_input`
166-
* `different_input:f` Must be different from another input field(f), where (f) must be the exact ngModel attribute of input field to compare to. The error message will use the input name or the `friendly-name` if it was provided on first input, ex.: `<input friendly-name="Password".../>` will display :: Confirmation field does not match specified field "Password".
167-
Confirmation field does not match specified field "Password".
168-
* `different_input:f,t` Must be different from another input field(f), same as (match:f) but also include (t) for alternate input name to be displayed in the error message (it still uses a generic error message, if you really wish to replace the full error message then you should use `match:n:alt` see [:alt](https://github.com/ghiscoding/angular-validation/wiki/Alternate-Text-on-Validators))
166+
* `different_input:f` Must be different from another input field(f), where (f) must be the exact ngModel attribute of input field to compare to. The error message will use the input name or the `friendly-name` if it was provided on first input, ex.: `<input friendly-name="First Name".../>` will display :: *Field must be different from specified field "First Name"*.
167+
* `different_input:f,t` Must be different from another input field(f), same as (different:f) but also include (t) for alternate input name to be displayed in the error message (it still uses a generic error message, if you really wish to replace the full error message then you should use `match:n:alt` see [:alt](https://github.com/ghiscoding/angular-validation/wiki/Alternate-Text-on-Validators))
169168
* `digits:n` Ensures that field only has integer numbers and length precisely matches the specified length (n).
170169
* `digits_between:min,max` Ensures that field only has integer numbers and is between a min,max length.
171170
* `email` Checks for a valid email address
@@ -182,7 +181,7 @@ Confirmation field does not match specified field "Password".
182181
* `ip` alias of `ipv4`
183182
* `ipv4` Check for valid IP (IPv4)
184183
* `ipv6` Check for valid IP (IPv6)
185-
* `match:f` Match another input field(f), where (f) must be the exact ngModel attribute of input field to compare to. The error message will use the `friendly-name` if it was provided on first input, ex.: `<input friendly-name="Password".../>` will display :: Confirmation field does not match specified field "Password".
184+
* `match:f` Match another input field(f), where (f) must be the exact ngModel attribute of input field to compare to. The error message will use the `friendly-name` if it was provided on first input, ex.: `<input friendly-name="Password".../>` will display :: *Confirmation field does not match specified field "Password"*.
186185
* `match:f,t` Match another input field(f), same as (match:f) but also include (t) for alternate input name to be displayed in the error message (it still uses a generic error message, if you really wish to replace the full error message then you should use `match:n:alt` see [:alt](https://github.com/ghiscoding/angular-validation/wiki/Alternate-Text-on-Validators))
187186
* `match_input` alias of `match`.
188187
* `max:n` will auto-detect value type then use proper validator.

0 commit comments

Comments
 (0)