mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-06 19:31:41 +00:00
Trim tag values (fixes #1276)
This commit is contained in:
@@ -92,7 +92,8 @@ iD.ui.TagEditor = function(context, entity) {
|
||||
function clean(o) {
|
||||
var out = {};
|
||||
for (var k in o) {
|
||||
if (o[k] && o[k] !== '') out[k] = o[k];
|
||||
var v = o[k].trim();
|
||||
if (v) out[k] = v;
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user