Good idea,

A couple of values that gave incorrect results:

Mo-Fr 08:62-27:88
Mo-Fr 09:00-16:00; Su 11-12
mo-we 12:00-15:00; Su off
24/7
we 09:00-12:00,13:30-15:00

The first is obviously incorrect so should produce an error rather than
attempting to parse it.

In the second and third example, when you type "Su" the parser assumes that
the same times should be applied to the Sunday. It sticks with this
assumption until a correctly formatted time is entered (in this case it
should be 11:00-12:00), but does not recognise "off" as a correct time
interval even though it is common use.

The fourth value is the most common (as shown on taginfo). It is not parsed
at all.

The fifth represents a lunch time break. The parser picks up the initial
part only.

Cheers,
Rob

(p.s I expect that some of these might be simply that the parser shows the
last correctly entered value until a new valid (an interpretable) value is
given.
_______________________________________________
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev

Reply via email to