Skip to content

Commit

Permalink
Merge pull request #95 from chrisninetyone/patch-1
Browse files Browse the repository at this point in the history
Changed default for split error re: weight when there is no rarity delimiter
  • Loading branch information
HashLips authored Oct 15, 2021
2 parents 85c7192 + 1a45a26 commit 6208668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const getRarityWeight = (_str) => {
nameWithoutExtension.split(rarityDelimiter).pop()
);
if (isNaN(nameWithoutWeight)) {
nameWithoutWeight = 0;
nameWithoutWeight = 1;
}
return nameWithoutWeight;
};
Expand Down

0 comments on commit 6208668

Please sign in to comment.