Skip to content

Commit

Permalink
yo code so ugly the bot had to fix it πŸ’€
Browse files Browse the repository at this point in the history
  • Loading branch information
HoodieRocks authored and actions-user committed Jan 23, 2024
1 parent 9045a51 commit cd6f5e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/routes/project/[project]/edit/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ const editProjectSchema = z.object({

const stringLength = value.length - "data:image/png;base64,".length;

const sizeInBytes = 4 * Math.ceil(stringLength / 3) * 0.562_489_633_438_381_2;
const sizeInBytes =
4 * Math.ceil(stringLength / 3) * 0.562_489_633_438_381_2;
const sizeInKb = sizeInBytes / 1000;
if (sizeInKb > 256) {
return false;
Expand Down

0 comments on commit cd6f5e6

Please sign in to comment.