Skip to content

Commit

Permalink
remove .png
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsPi3141 committed Jan 16, 2025
1 parent 6ec0ed7 commit d784821
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions utils/extractInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ function extractInfo(collectibleCategories) {
return {
n: p.name,
d: p.summary,
f: `${p.name
f: p.name
.toLowerCase()
.replaceAll("'", "")
.replaceAll(/[^A-Za-z0-9]+/g, "_")
.replaceAll(/(^_|_$)/g, "")}.png`,
.replaceAll(/(^_|_$)/g, ""),
};
}
if (p.type === 2000) {
Expand All @@ -27,11 +27,11 @@ function extractInfo(collectibleCategories) {
.map((v) => ({
n: v.name,
d: v.summary,
f: `${v.name
f: v.name
.toLowerCase()
.replaceAll("'", "")
.replaceAll(/[^A-Za-z0-9]+/g, "_")
.replaceAll(/(^_|_$)/g, "")}.png`,
.replaceAll(/(^_|_$)/g, ""),
}));
}
}),
Expand Down Expand Up @@ -105,11 +105,11 @@ function getInfoBySKU(sku) {
{
n: j.name,
d: j.summary,
f: `${j.name
f: j.name
.toLowerCase()
.replaceAll("'", "")
.replaceAll(/[^A-Za-z0-9]+/g, "_")
.replaceAll(/(^_|_$)/g, "")}.png`,
.replaceAll(/(^_|_$)/g, ""),
},
createLink(
j.items[0].asset,
Expand Down

0 comments on commit d784821

Please sign in to comment.