aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/guide/forms.ngdoc
diff options
context:
space:
mode:
authormkolodny2013-12-20 23:41:00 -0500
committerIgor Minar2013-12-20 21:22:15 -0800
commitd1c4766d143d474ae255079684a02b63d219b35b (patch)
treeb78800caf84f680864dfaf48eded78916c1f0ade /docs/content/guide/forms.ngdoc
parent98473835a27c359234592a752f32f74c095b9c55 (diff)
downloadangular.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.ngdoc2
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',