Skip to content

Commit f9148aa

Browse files
weddingdjngokevin
authored andcommitted
string-trim primitive attribute values (fixes #3132) (#3145)
1 parent 27d4b07 commit f9148aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/extras/primitives/primitives.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ module.exports.registerPrimitive = function registerPrimitive (name, definition)
9191
path = utils.entity.getComponentPropertyPath(mapping);
9292
if (path.constructor === Array) {
9393
data[path[0]] = data[path[0]] || {};
94-
data[path[0]][path[1]] = attr.value;
94+
data[path[0]][path[1]] = attr.value.trim();
9595
} else {
96-
data[path] = attr.value;
96+
data[path] = attr.value.trim();
9797
}
9898
continue;
9999
}

0 commit comments

Comments
 (0)