From 2d8cc5fc4a41b2b51670af933e605885d63d3062 Mon Sep 17 00:00:00 2001 From: Kionell Date: Mon, 2 Nov 2020 19:36:45 +0200 Subject: [PATCH 1/2] Fixed colons in metadata --- src/Beatmap.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Beatmap.js b/src/Beatmap.js index a296348..14c7000 100644 --- a/src/Beatmap.js +++ b/src/Beatmap.js @@ -137,7 +137,11 @@ class Beatmap { break; } case "Metadata": { - let [key, value] = line.split(":").map(v => v.trim()); + let [key, ...value] = line.split(":"); + + key = key.trim(); + value = value.join(':').trim(); + switch (key) { case "Title": beatmap[section][key] = value; From 752c2f6fad5b518f3bf6fb44e3bd10902ef6d8ac Mon Sep 17 00:00:00 2001 From: Kionell Date: Mon, 2 Nov 2020 19:51:39 +0200 Subject: [PATCH 2/2] Updated package version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8a0244a..be5369d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "osu-bpdpc", - "version": "0.2.3", + "version": "0.2.4", "description": "Osu beatmap parser, difficulty and performance calculator", "main": "index.js", "engines": {