[Opensource] bug in DBObject.FLOAT_MASK

larry hamel expresso at codeguild.com
Thu Dec 5 17:32:48 PST 2002


i checked this in, doubling the backslashes for java.

public static final String FLOAT_MASK = "^([+-]?)(?=\\d|\\.\\d)\\d*(\\.\\d*)?([Ee]([+-]?\\d+))?$";

larry

At 01:23 PM 12/4/2002, you wrote:

>DBObject.FLOAT_MASK doesn't work. It's defined as:
>^[+-]?([0-9]+.|[0-9]*.[0-9]+)([eE][+-]?[0-9]+)?
>
>I found one that does:
>^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$
>
> 
>
>I'd make the change myself, but have not yet setup cvs for write access and don't have time right now.
>
> 
>
>Thanks,
>Mike
>
> 




More information about the Opensource mailing list