I agree that using exceptions for normal flow isn't ideal but none of the 
regex I tried worked with the Codename One regex class properly. I've tried 
again and found a simple Regex did the job for my simplified use case. The 
number is generated by a count of user actions so is always an integer and 
will never get to infinity.

I guess it just shows that if there was an exception for other reasons the 
behaviour could be different on iOS compared to expected behaviour and it 
needs to be addressed.

On Tuesday, August 8, 2017 at 5:12:12 AM UTC+12, Dave Dyer wrote:
>
> It depends on your actual application, but I would recommend writing your 
> own
> filter to pass only tokens that are acceptable to you.  You shouldn't 
> depend on
> the arbitrary definition of "number".  Would "Infinity" be acceptable? 
> parseDouble
> thinks so.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/6433f8a8-2f6a-464b-be61-bda1fc15f71a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to