This commit is contained in:
Ryan Cao 2022-09-16 23:02:51 +08:00
parent f3c4151e24
commit c346ad66db
No known key found for this signature in database
6 changed files with 216 additions and 219 deletions

View file

@ -4,7 +4,7 @@ export async function readPasteGG(s: string): Promise<null | string> {
const r = s.match(reg);
if (r == null || !r[0]) return null;
const link = r[0];
const id = link.replace(/https\:\/\/paste.gg\/p\/[\w]*\//, '');
const id = link.replace(/https:\/\/paste.gg\/p\/[\w]*\//, '');
if (!id) return null;
let log: string;
try {

View file

@ -18,7 +18,7 @@ export const getTags = async (): Promise<Tag[]> => {
return raw.map((tag) => {
if (tag.embed?.color) {
// @ts-expect-error f
// @ts-expect-error this doesn't work for TypeScript but it does for me
tag.embed.color = COLORS[tag.embed.color];
}