Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
fix: added braces around date and time variable
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaNecron committed Sep 29, 2021
1 parent cf6732f commit d8517e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/[...id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export default function Embed({ file, embed, username, content = undefined, misc
return (text ?? '').replace(/{size}/ig, misc.size)
.replace(/{filename}/ig, file.fileName)
.replace(/{orig}/ig, file.origFileName)
.replace(/date/ig, time.toLocaleDateString())
.replace(/time/ig, time.toLocaleTimeString())
.replace(/{date}/ig, time.toLocaleDateString())
.replace(/{time}/ig, time.toLocaleTimeString())
.replace(/{author}/ig, username);
};
return (
Expand Down

0 comments on commit d8517e4

Please sign in to comment.