Skip to content

Commit

Permalink
Update readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpoole committed Apr 15, 2017
1 parent 639d94f commit 6985e68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

This is a very simplistic parser for string values according to the [OSM opening hours specification][opening-hours-specification].

It parses 146'233 (91%) of 161'268 unique test strings in non-strict mode. The remaining 15'035 are likely valid errors, spot checking shows that they have obvious issues. In strict mode further 21'895 fail (total 36'930).
It parses 146'709 (91%) of 161'268 unique test strings in non-strict mode. The remaining 14'559 are likely valid errors, spot checking shows that they have obvious issues. In strict mode further 22'357 fail (total 36'916).

Deviations from the grammar as of [this version of the opening hours specification][opening-hours-grammar-specification] in all modes:

* case insensitive
* leading 0s in times optional
* unicode EN DASH character is allowed for hyphen
* various unicode whitespace characters are ignored

In non-strict mode the following further differences are allowed:

Expand All @@ -22,6 +23,7 @@ In non-strict mode the following further differences are allowed:
* holidays following weekdays
* 24/7 rules with preceding selectors are corrected to 00:00-24:00 time spans
* list of month days after months ( Jan 1,4,5 )
* " to " in lieu of a hyphen for ranges

Converting the data structures generated by parsing back to strings will result in correct data according to the specification.

Expand Down

0 comments on commit 6985e68

Please sign in to comment.