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 {