fix regex
This commit is contained in:
parent
23c6b6eb48
commit
afff3b5b3e
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ export default async (message: Message, client: Client) => {
|
|||
|
||||
/* Citation */
|
||||
const regex =
|
||||
"https://(?:canary\\.|ptb\\.)?discord(?:app)?\\.com/channels/(\\d{17,19})/(\\d{17,19})/(\\d{17,19})";
|
||||
/https:\/\/(?:canary\.|ptb\.)?discord(?:app)?\.com\/channels\/(\d{17,19})\/(\d{17,19})\/(\d{17,19})/g;
|
||||
const urls = message.content.match(new RegExp(regex, "g"));
|
||||
|
||||
// Ignore message if there is no URLs
|
||||
|
|
Loading…
Reference in a new issue