openstreetmap/iD

convert non-standard dashes to standard dashes in the Opening Hours field

開放

#9,735 建立於 2023年7月6日

 (5 則留言) (2 個反應) (0 位負責人)JavaScript (1,449 個分叉)github user discovery
help wantednew contributor opportunityvalidation

倉庫指標

星標
 (3,818 顆星)
PR 合併指標
 (平均合併 29天 14小時) (30 天內合併 82 個 PR)

描述

URL

https://www.openstreetmap.org/changeset/138191928

How to reproduce the issue?

Upload opening hours using a non-standard dash

the standard dash seems to be - (Hyphen-Minus) other similar dashes: HYPHEN NON-BREAKING HYPHEN FIGURE DASH EN DASH SMALL EM DASH ۔‎ ARABIC FULL STOP HYPHEN BULLET ˗ MODIFIER LETTER MINUS SIGN MINUS SIGN HEAVY MINUS SIGN COPTIC CAPITAL LETTER DIALECT-P NI (similar characters found from https://www.unicode.org/Public/security/15.0.0/confusables.txt, there may be more)

this leads to parsing fails in some applications, eg. also see https://github.com/organicmaps/organicmaps/issues/3888. it should also be handled at the application level, but it's good to have standard data as well.

Screenshot(s) or anything else?

No response

Which deployed environments do you see the issue in?

Released version at openstreetmap.org/edit

What version numbers does this issue effect?

No response

Which browsers are you seeing this problem on?

No response

貢獻者指南