diff options
| author | mkolodny | 2013-12-20 23:41:00 -0500 | 
|---|---|---|
| committer | Igor Minar | 2013-12-20 21:22:15 -0800 | 
| commit | d1c4766d143d474ae255079684a02b63d219b35b (patch) | |
| tree | b78800caf84f680864dfaf48eded78916c1f0ade /docs/content/guide/forms.ngdoc | |
| parent | 98473835a27c359234592a752f32f74c095b9c55 (diff) | |
| download | angular.js-d1c4766d143d474ae255079684a02b63d219b35b.tar.bz2 | |
docs(guide/forms): update example
Right now, non-integers such as 'aawefwae' are valid.
This ensures that only integers are valid. Hopefully that makes the example more powerful.
Closes #5501
Diffstat (limited to 'docs/content/guide/forms.ngdoc')
| -rw-r--r-- | docs/content/guide/forms.ngdoc | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/docs/content/guide/forms.ngdoc b/docs/content/guide/forms.ngdoc index d05a3214..c558a220 100644 --- a/docs/content/guide/forms.ngdoc +++ b/docs/content/guide/forms.ngdoc @@ -235,7 +235,7 @@ In the following example we create two directives.  <script>    var app = angular.module('form-example1', []); -  var INTEGER_REGEXP = /^\-?\d*$/; +  var INTEGER_REGEXP = /^\-?\d+$/;    app.directive('integer', function() {      return {        require: 'ngModel', | 
