From cfa16327a57245660205976dbaabfecddbe90765 Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 9 Jul 2012 15:59:28 +0200 Subject: [PATCH] Ox.Input: fix integer regexp --- source/Ox.UI/js/Form/Input.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Form/Input.js b/source/Ox.UI/js/Form/Input.js index a50a64ab..c935f7e5 100644 --- a/source/Ox.UI/js/Form/Input.js +++ b/source/Ox.UI/js/Form/Input.js @@ -546,7 +546,7 @@ Ox.Input = function(options, self) { '(^' + (self.options.min < 0 ? '\\-?' : '') + '\\d+\\.?\\d' + (self.options.decimals ? '{0,' + self.options.decimals + '}' : '*') + '$)' - ) : new RegExp('(^' + (self.options.min < 0 ? '\\-?' : '') + '\\d+)'); + ) : new RegExp('(^' + (self.options.min < 0 ? '\\-?' : '') + '\\d+$)'); if (type == 'float') { if (value === '') { value = '0.' + self.decimals;