fix: quotes not working #60
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ export default async (message: Message, client: Client) => {
|
||||||
|
|
||||||
/* Citation */
|
/* Citation */
|
||||||
const regex =
|
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"));
|
const urls = message.content.match(new RegExp(regex, "g"));
|
||||||
|
|
||||||
// Ignore message if there is no URLs
|
// Ignore message if there is no URLs
|
||||||
|
|
Loading…
Reference in a new issue