From 6f3c84bf77989564c93dc6a3a5e41b66cb04b3e5 Mon Sep 17 00:00:00 2001 From: Karishma Chadha Date: Tue, 10 Apr 2018 17:01:31 -0400 Subject: [PATCH] Ensure we are serializing file extensions for costumes and sounds as lower case. --- src/serialization/sb3.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/serialization/sb3.js b/src/serialization/sb3.js index 8a786c484..7b56c0beb 100644 --- a/src/serialization/sb3.js +++ b/src/serialization/sb3.js @@ -306,7 +306,7 @@ const serializeCostume = function (costume) { // but that change should be made carefully since it is very // pervasive obj.md5ext = costume.md5; - obj.dataFormat = costume.dataFormat; + obj.dataFormat = costume.dataFormat.toLowerCase(); obj.rotationCenterX = costume.rotationCenterX; obj.rotationCenterY = costume.rotationCenterY; return obj; @@ -321,7 +321,7 @@ const serializeSound = function (sound) { const obj = Object.create(null); obj.assetId = sound.assetId; obj.name = sound.name; - obj.dataFormat = sound.dataFormat; + obj.dataFormat = sound.dataFormat.toLowerCase(); obj.format = sound.format; obj.rate = sound.rate; obj.sampleCount = sound.sampleCount;