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

Commit e869d07

Browse files
committed
Revert "typo"
This reverts commit 0bd9bcf.
1 parent 0bd9bcf commit e869d07

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,15 @@ <h1>Angular-Validation Directive|Service (ghiscoding)</h1>
4242
<script src="vendors/angular-translate/angular-translate-loader-static-files.min.js"></script>
4343

4444
<!-- You can also load angular-validation with the all in 1 minified file -->
45-
<!--<script type="text/javascript" src="dist/angular-validation.min.js"></script>-->
45+
<script type="text/javascript" src="dist/angular-validation.min.js"></script>
4646

4747
<!-- angular-validation, directive and service are totally independent you can load one or the other or you can use them in parallel too. But `-common.js` and `-rules.js` are mandatory. -->
48+
<!--
4849
<script type="text/javascript" src="src/validation-directive.js"></script>
4950
<script type="text/javascript" src="src/validation-service.js"></script>
5051
<script type="text/javascript" src="src/validation-common.js"></script>
5152
<script type="text/javascript" src="src/validation-rules.js"></script>
53+
-->
5254

5355
<!-- your ng-app file -->
5456
<script type="text/javascript" src="app.js"></script>

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 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.
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.
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.
366368
* `between_date_iso:d1,d2` alias of `between_date_iso`.
367369
* `between_date_euro_long:d1,d2` alias of `date_euro_long_between`.
368370
* `between_date_euro_short:d1,d2` alias of `date_euro_short_between`.
369371
* `between_date_us_long:d1,d2` alias of `date_us_long_between`.
370372
* `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).
415413
* `min_date_iso` alias of `date_iso_min`.
416414
* `min_date_euro_long` alias of `date_euro_long_min`.
417415
* `min_date_euro_short` alias of `date_euro_short_min`.
418416
* `min_date_us_long` alias of `date_us_long_min`.
419417
* `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)