mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
(fixes: https://github.com/osmlab/name-suggestion-index/issues/5693) Previously the code would accept the first useful match, however this match might be an "alternate" match. Now we keep iterating until we find a "primary" match. This bug could cause the validator to suggest upgrading well-tagged features to a less wanted feature type. For example a "Tesla Supercharger" would flip to a "Tesla Destination Charger" if it had "Tesla" anywhere in its list of tags (because `short_name=Tesla` is an "alternate" match for both destination chargers and super chargers)