[mapserver-commits] r9777 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Thu Feb 4 13:02:41 EST 2010
Author: assefa
Date: 2010-02-04 13:02:40 -0500 (Thu, 04 Feb 2010)
New Revision: 9777
Modified:
trunk/mapserver/mapogcfilter.c
Log:
Correct regex for numeric value tests #3289
Modified: trunk/mapserver/mapogcfilter.c
===================================================================
--- trunk/mapserver/mapogcfilter.c 2010-02-03 23:47:05 UTC (rev 9776)
+++ trunk/mapserver/mapogcfilter.c 2010-02-04 18:02:40 UTC (rev 9777)
@@ -73,7 +73,7 @@
if (!bString)
return MS_TRUE;
#else
- if (msEvalRegex("[-+]?\\b([0-9]*\\.[0-9]+|[0-9]+)\\b", pszValue) == MS_TRUE)
+ if (msEvalRegex("^[-+]?[0-9]*\\.?[0-9]+([eE][-+]?[0-9]+)?$", pszValue) == MS_TRUE)
return MS_TRUE;
#endif
}
More information about the mapserver-commits
mailing list