Skip to content

Commit

Permalink
Remove double spaces when copying component representation (#541)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentfretin authored May 31, 2024
1 parent d074c55 commit 6082fb7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/editor/lib/entity.js
Original file line number Diff line number Diff line change
Expand Up @@ -518,9 +518,7 @@ export function getComponentClipboardRepresentation(entity, componentName) {
}

const diff = getModifiedProperties(entity, componentName);
const attributes = AFRAME.utils.styleParser
.stringify(diff)
.replace(/;|:/g, '$& ');
const attributes = AFRAME.utils.styleParser.stringify(diff);
return `${componentName}="${attributes}"`;
}

Expand Down

0 comments on commit 6082fb7

Please sign in to comment.