Improve Pastebin.com detection
Signed-off-by: pandaninjas <101084582+pandaninjas@users.noreply.github.com>
This commit is contained in:
parent
4e2afcc7f8
commit
dec4d8c986
1 changed files with 1 additions and 1 deletions
|
@ -226,7 +226,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