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

Commit efdca4f

Browse files
committed
typo
1 parent e869d07 commit efdca4f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

readme.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ Final code (without spaces): `regex:YYWW:=^(0[9]|1[0-9]|2[0-9]|3[0-9])(5[0-2]|[0
321321
<a name="alternate"></a>
322322
Alternate Text on Validators
323323
--------------------
324-
Validators can now use alternate text instead of the usual defined locale $translate text, for example it could be useful to see a different text on a `<select>` instead of the usual "Field is Required". This works on all type of validators and is defined by adding `:alt=` at the end of any validators, it could be used on 1 or more validators directly inside the `validation=""` attribute. See the examples below.
324+
Validators can now use alternate text instead of the usual defined locale $translate text, for example seeing "Field is Required" on a `<select>` might not always be useful, it might be more useful to see an alternate text that is "Please choose an option". Alternate text works on all type of validators and is defined by adding `:alt=` at the end of any validators, it could be used on 1 or more validators directly inside the `validation=""` attribute. See the examples below.
325325
```html
326326
<!-- You can use translate in your HTML -->
327327
<!-- Example #1 with 1 alternate text on 1 of the 2 validators -->
@@ -363,13 +363,13 @@ All validators are written as `snake_case` but it's up to the user's taste and c
363363
* `alpha_num_spaces` Only alpha-numeric characters (with latin & spaces) are present (a-z, A-Z, 0-9)
364364
* `alpha_dash` Only alpha-numeric characters + dashes, underscores are present (a-z, A-Z, 0-9, _-)
365365
* `alpha_dash_spaces` Alpha-numeric chars + dashes, underscores and spaces (a-z, A-Z, 0-9, _-)
366-
* `between_len:min,max` Ensures the length of a string is between a min,max length.
367-
* `between_num:min,max` Ensures the numeric value is between a min,max number.
368366
* `between_date_iso:d1,d2` alias of `between_date_iso`.
369367
* `between_date_euro_long:d1,d2` alias of `date_euro_long_between`.
370368
* `between_date_euro_short:d1,d2` alias of `date_euro_short_between`.
371369
* `between_date_us_long:d1,d2` alias of `date_us_long_between`.
372370
* `between_date_us_short:d1,d2` alias of `date_us_short_between`.
371+
* `between_len:min,max` Ensures the length of a string is between a min,max length.
372+
* `between_num:min,max` Ensures the numeric value is between a min,max number.
373373
* `credit_card` Valid credit card number (AMEX, VISA, Mastercard, Diner's Club, Discover, JCB)
374374
* `date_iso` Ensure date follows the ISO format (yyyy-mm-dd)
375375
* `date_iso_between:d1,d2` Ensure date follows the ISO format and is between (d1) &amp; (d2)
@@ -410,13 +410,13 @@ All validators are written as `snake_case` but it's up to the user's taste and c
410410
* `max_date_euro_short` alias of `date_euro_short_max`.
411411
* `max_date_us_long` alias of `date_us_long_max`.
412412
* `max_date_us_short` alias of `date_us_short_max`.
413+
* `max_len:n` Checks field length, no longer than specified length where (n) is length parameter.
414+
* `max_num:n` Checks numeric value to be lower or equal than the number (n).
413415
* `min_date_iso` alias of `date_iso_min`.
414416
* `min_date_euro_long` alias of `date_euro_long_min`.
415417
* `min_date_euro_short` alias of `date_euro_short_min`.
416418
* `min_date_us_long` alias of `date_us_long_min`.
417419
* `min_date_us_short` alias of `date_us_short_min`.
418-
* `max_len:n` Checks field length, no longer than specified length where (n) is length parameter.
419-
* `max_num:n` Checks numeric value to be lower or equal than the number (n).
420420
* `min_len:n` Checks field length, no shorter than specified length where (n) is length parameter.
421421
* `min_num:n` Checks numeric value to be higher or equal than the number (n).
422422
* `numeric` Only positive numeric value (float, integer).

0 commit comments

Comments
 (0)