Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NSI related fixes #8618

Merged
merged 2 commits into from
Aug 2, 2021
Merged

NSI related fixes #8618

merged 2 commits into from
Aug 2, 2021

Conversation

bhousel
Copy link
Member

@bhousel bhousel commented Aug 2, 2021

closes #8615 - preserve tag values that can be toplevel tags unless it's the toplevel tag for the matched item
closes #8617 - don't consider old_name as a name for matching

bhousel added 2 commits August 2, 2021 12:07
We'll only _replace_ the tag value if this tag is the toplevel/defining tag for the matched item (`k`)
(closes #8615)
@@ -349,6 +349,7 @@ function gatherNames(tags) {
}

function isNamelike(osmkey, which) {
if (osmkey === 'old_name') return false;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps a small detail but it would be cleaner to include this to 'notNames' exception list

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about that but notNames is already a pretty gnarly regex and I didn't want to make it worse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NSI shouldn't match on old_name tag 2.20.0 tag validation issue
2 participants