forked from MapComplete/MapComplete
Fix space, add trim warning (fix #85)
This commit is contained in:
parent
dd8f5e549e
commit
7d65c84513
2 changed files with 10 additions and 2 deletions
|
@ -63,6 +63,13 @@ export class Changes {
|
|||
console.log("Invalid value for ",key);
|
||||
return;
|
||||
}
|
||||
|
||||
if(key.startsWith(" ") || value.startsWith(" ") || value.endsWith(" ") || key.endsWith(" ")){
|
||||
console.warn("Tag starts with or ends with a space - trimming anyway")
|
||||
}
|
||||
|
||||
key = key.trim();
|
||||
value = value.trim();
|
||||
|
||||
const eventSource = State.state.allElements.getElement(elementId);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue