From 4f22d6866c052fb5b770ce4f377cecacacd9e6d8 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Thu, 23 Dec 2010 00:44:27 +0100 Subject: complete rewrite of documentation generation - romeved mustache.js - unified templates - improved testability of the code --- src/validators.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/validators.js') diff --git a/src/validators.js b/src/validators.js index 8030c0d0..e9a5feb9 100644 --- a/src/validators.js +++ b/src/validators.js @@ -9,13 +9,19 @@ extend(angularValidator, { * Use regexp validator to restrict the input to any Regular Expression. * * @param {string} value value to validate - * @param {regexp} expression regular expression. + * @param {string|regexp} expression regular expression. + * @param {string=} msg error message to display. * @css ng-validation-error * * @example - * + * * Enter valid SSN: - * + *
+ * + *
* * @scenario * it('should invalidate non ssn', function(){ -- cgit v1.2.3