-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Handle multiple tags when splitting up in tag editor #6211
Handle multiple tags when splitting up in tag editor #6211
Conversation
Huh, seems like the build system complains about missing semicolons, although they are present. |
You need to put them in the anonymous functions too.. for example: list.map(function(item) { return item.trim(); }); |
@AndrewHain <3 Will it also work if I copy multi line key-value pairs which are something like |
Oh, thanks @bhousel! Didn't see them.. What's weird though is that the build passed just fine for me locally. |
@tordans yes, that works! |
@AndreasHae You need to run |
@AndreasHae |
Good point @slhh. |
Thanks @AndreasHae - this looks ok 👍 |
(Reverts: #6211, #5070, #5024) The old code allows users to circumvent the readonly tag protection see #6185 (comment) We'll offer a text-mode instead, with stricter checks on which keys can be modified.
As requested by @tordans in #5070 and #6185:
When pasting multiple tags like "amenity=restaurant name=The Restaurant", they shall be split up and added separately. My implementation assumes that there will never be spaces in keys, so it also handles cases like "name=The Restaurant amenity=restaurant" correctly, and splits it up at the last space before the key.