You are right, this is a bug; but anyway, this is superceded by http://www.yaml.org/spec/1.2/spec.html#id2804356 (which was lifted from the JSON spec to ensure compatibility).

Have fun,

Oren Ben-Kiki


On Sat, Nov 17, 2012 at 4:58 AM, Aaron Patterson <aaron@tenderlovemaking.com> wrote:
Hi,

The regexp for base 10 floating point values listed on this page:

  http://yaml.org/type/float.html

Says:

  [-+]?([0-9][0-9_]*)?\.[0-9.]*([eE][-+][0-9]+)? (base 10)

This regexp allows any number of dots in a row to be a valid base 10
float (for example "." or ".." or "....").  Shouldn't this regexp at
least be:

  [-+]?([0-9][0-9_]*)?\.[0-9]*([eE][-+][0-9]+)? (base 10)

Or am I missing something? (I realize the above regexp would match "."
as a valid float, but what are you going to do? ;-) ).

Thanks for your time.

--
Aaron Patterson
http://tenderlovemaking.com/

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Yaml-core mailing list
Yaml-core@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/yaml-core