fix lint
This commit is contained in:
parent
f3c4151e24
commit
c346ad66db
6 changed files with 216 additions and 219 deletions
|
@ -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 {
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue