diff options
author | mat <github@matdoes.dev> | 2022-05-17 21:10:38 -0500 |
---|---|---|
committer | mat <github@matdoes.dev> | 2022-05-17 21:10:38 -0500 |
commit | 31b2b2bcc411c6bffb925eaff50731f9aefb5a82 (patch) | |
tree | fca920a7277b11bec6b56d1c7063bb15ddf94584 /src/hypixel.ts | |
parent | 667b2d08638959d11bc2fbfa6e2b40b0e9834d6d (diff) | |
download | skyblock-api-31b2b2bcc411c6bffb925eaff50731f9aefb5a82.tar.gz skyblock-api-31b2b2bcc411c6bffb925eaff50731f9aefb5a82.tar.bz2 skyblock-api-31b2b2bcc411c6bffb925eaff50731f9aefb5a82.zip |
Sort auctions by most sold
Diffstat (limited to 'src/hypixel.ts')
-rw-r--r-- | src/hypixel.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hypixel.ts b/src/hypixel.ts index a29a7b1..2e0c1bc 100644 --- a/src/hypixel.ts +++ b/src/hypixel.ts @@ -500,7 +500,7 @@ async function fetchAuctionItemsUncached() { // if the item in the database isn't in the items api, just set the name to the id for (const item of auctionItemIds) if (!idsToNames.has(item)) - idsToNames.set(item, item) + idsToNames.set(item, item.toLowerCase().replace(/^./, item[0].toUpperCase()).replace(/_/g, ' ')) return idsToNames } |