Merge pull request #95 from lalop/patch-2

accept negative number
This commit is contained in:
David Baldwynn 2016-05-28 12:33:50 -07:00
commit f4844a7b2a

View file

@ -88,7 +88,7 @@ angular.module('forms').directive('fieldDirective', ['$http', '$compile', '$root
break;
case 'number':
scope.field.input_type = 'text';
scope.field.validateRegex = /^\d+$/;
scope.field.validateRegex = /^-?\d+$/;
break;
default:
scope.field.input_type = 'url';