r827 - in trunk: . coser-business/src/main/java/fr/ifremer/coser/validators
Author: chatellier Date: 2011-05-25 10:25:31 +0000 (Wed, 25 May 2011) New Revision: 827 Log: Fix double min decimal check with negative values Modified: trunk/changelog.txt trunk/coser-business/src/main/java/fr/ifremer/coser/validators/CoserCheckDoubleValidator.java Modified: trunk/changelog.txt =================================================================== --- trunk/changelog.txt 2011-05-22 17:59:30 UTC (rev 826) +++ trunk/changelog.txt 2011-05-25 10:25:31 UTC (rev 827) @@ -4,6 +4,7 @@ 1.0.6 ----- + * Fix double min decimal check with negative values * Update to jQuery 1.6.1 * Update to HttpComponent Core 4.1.1 Modified: trunk/coser-business/src/main/java/fr/ifremer/coser/validators/CoserCheckDoubleValidator.java =================================================================== --- trunk/coser-business/src/main/java/fr/ifremer/coser/validators/CoserCheckDoubleValidator.java 2011-05-22 17:59:30 UTC (rev 826) +++ trunk/coser-business/src/main/java/fr/ifremer/coser/validators/CoserCheckDoubleValidator.java 2011-05-25 10:25:31 UTC (rev 827) @@ -51,7 +51,7 @@ * - group3 => exposant with e * - group4 => exposant without e */ - protected static final Pattern DOUBLE_PATTERN = Pattern.compile("^[0-9]+(\\.([0-9]+))?(e(\\-?[0-9]+))?$"); + protected static final Pattern DOUBLE_PATTERN = Pattern.compile("^-?[0-9]+(\\.([0-9]+))?(e(\\-?[0-9]+))?$"); protected String notAvailable;
participants (1)
-
chatellierï¼ users.labs.libre-entreprise.org