Merge pull request #9 from pandaninjas/patch-1
This commit is contained in:
commit
a85b5f3646
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue