Commit cfe3e3ed authored by gijs's avatar gijs

Trim all strings

parent 73e729f3
......@@ -71,6 +71,8 @@ window.W = window.W || {};
return v.trim();
} else if (typeof v === "number") {
return v;
} else if (v === null) {
return v;
} else if (Array.isArray(v)) {
return _.map(v, trimStrings);
} else if (typeof v === "object") {
......@@ -80,7 +82,10 @@ window.W = window.W || {};
return v;
}
return trimStrings(data);
// console.log(data);
data = trimStrings(data);
// console.log(data);
return data;
},
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment