From 637aa398bba7c7193f28c31aa7d1092c2bb21927 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Wed, 4 Sep 2024 22:20:56 +0200 Subject: [PATCH] fix: 1.103.01 - parse old .map - add patch version --- index.html | 2 +- modules/io/load.js | 5 ++++- versioning.js | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 8211b31e..03ff61cc 100644 --- a/index.html +++ b/index.html @@ -8129,7 +8129,7 @@ - + diff --git a/modules/io/load.js b/modules/io/load.js index 6462b35f..189ce532 100644 --- a/modules/io/load.js +++ b/modules/io/load.js @@ -153,7 +153,10 @@ async function parseLoadedResult(result) { const mapData = decoded.split("\r\n"); const mapVersionString = mapData[0].split("|")[0] || mapData[0] || ""; - return [mapData, mapVersionString]; + const [major, minor, patch = "00"] = mapVersionString.split("."); + const mapVersion = `${major}.${minor}.${patch}`; + + return [mapData, mapVersion]; } catch (error) { // map file can be compressed with gzip const uncompressedData = await uncompress(result); diff --git a/versioning.js b/versioning.js index 283c243e..a694ea89 100644 --- a/versioning.js +++ b/versioning.js @@ -12,7 +12,7 @@ * * Example: 1.102.0 -> Major version 1, Minor version 102, Patch version 0 */ -const VERSION = "1.103.0"; +const VERSION = "1.103.01"; { document.title += " v" + VERSION;