Merge pull request #10564 from Dimitar5555/patch-4

Preserve 'opening_hours' when matching with NSI
This commit is contained in:
Minh Nguyễn
2024-11-29 23:40:42 -08:00
committed by GitHub
+1 -1
View File
@@ -581,7 +581,7 @@ function _upgradeTags(tags, loc) {
// These tags can be toplevel tags -or- attributes - so we generally want to preserve existing values - #8615
// We'll only _replace_ the tag value if this tag is the toplevel/defining tag for the matched item (`k`)
['building', 'emergency', 'internet_access', 'takeaway'].forEach(osmkey => {
['building', 'emergency', 'internet_access', 'opening_hours', 'takeaway'].forEach(osmkey => {
if (k !== osmkey) preserveTags.push(`^${osmkey}$`);
});