From 6082fb7fcf0ba28696a64911fa000bc71678759d Mon Sep 17 00:00:00 2001 From: Vincent Fretin Date: Fri, 31 May 2024 23:33:22 +0200 Subject: [PATCH] Remove double spaces when copying component representation (#541) --- src/editor/lib/entity.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/editor/lib/entity.js b/src/editor/lib/entity.js index 581d198b3..6fcdaca1e 100644 --- a/src/editor/lib/entity.js +++ b/src/editor/lib/entity.js @@ -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}"`; }