Merge pull request #9 from pandaninjas/patch-1

This commit is contained in:
Sefa Eyeoglu 2022-12-05 23:58:50 +01:00 committed by GitHub
commit a85b5f3646
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -195,7 +195,7 @@ const providers: LogProvider[] = [
];
export async function parseLog(s: string): Promise<EmbedBuilder | null> {
if (s.includes('https://pastebin.com/')) {
if (/(https?:\/\/)?pastebin\.com\/(raw\/)?[^/\s]{8}/g.test(s)) {
const embed = new EmbedBuilder()
.setTitle('pastebin.com detected')
.setDescription(