Skip to content

Commit

Permalink
Merge pull request #7 from kionell/master
Browse files Browse the repository at this point in the history
Colon fix
  • Loading branch information
Itsyuka authored Nov 11, 2020
2 parents 9d398f2 + 752c2f6 commit 8f29c5c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
6 changes: 5 additions & 1 deletion src/Beatmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8f29c5c

Please sign in to comment.