Opened 3 years ago
Last modified 8 months ago
#22915 new enhancement
Allow semi-colon list in frequency=* — at Version 1
| Reported by: | midgard | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Core validator | Version: | |
| Keywords: | numeric frequency power line | Cc: | francois.lacombe |
Description (last modified by )
Currently frequency=* is validated against this regex in resources/data/validator/numeric.mapcss:
^(0|[1-9][0-9]*(\.[0-9]+)?)( (kHz|MHz|GHz|THz))?$
Semi-colon separated lists should also be recognized as valid, for power lines with multiple circuits at different frequencies. This is common when power lines for the railways are piggy-backing on transmission power lines, e.g. at https://www.openstreetmap.org/way/208904880.
Expected: assertNoMatch: "way frequency=50;50;16.7";
Actual: "way frequency=50;50;16.7" matches and gives validator warning


