Skip to content

Commit 6208668

Browse files
authored
Merge pull request #95 from chrisninetyone/patch-1
Changed default for split error re: weight when there is no rarity delimiter
2 parents 85c7192 + 1a45a26 commit 6208668

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const getRarityWeight = (_str) => {
4545
nameWithoutExtension.split(rarityDelimiter).pop()
4646
);
4747
if (isNaN(nameWithoutWeight)) {
48-
nameWithoutWeight = 0;
48+
nameWithoutWeight = 1;
4949
}
5050
return nameWithoutWeight;
5151
};

0 commit comments

Comments
 (0)