Skip to content

Commit

Permalink
also delete source:* and check_date:* when replacing shop (replaces #…
Browse files Browse the repository at this point in the history
…6067, fixes #6057)
  • Loading branch information
westnordost committed Jan 9, 2025
1 parent aa199c9 commit 65bba70
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/main/java/de/westnordost/streetcomplete/osm/Place.kt
Original file line number Diff line number Diff line change
Expand Up @@ -383,4 +383,6 @@ private val KEYS_THAT_SHOULD_BE_REMOVED_WHEN_PLACE_IS_REPLACED = listOf(
"engineering", "forestry", "foundation", "lawyer", "logistics", "military", "community_centre",
"bank", "operational", "users_(PLWD|boy|elderly|female|girl|men)",
"Comments?", "comments?", "entrance:(width|step_count|kerb:height)", "fenced", "motor_vehicle",
).map { it.toRegex() }
)
.flatMap { listOf(it, "source:$it", "check_date:$it") }
.map { it.toRegex() }

0 comments on commit 65bba70

Please sign in to comment.