Skip to content

Commit

Permalink
fix gumroad regex
Browse files Browse the repository at this point in the history
  • Loading branch information
hchoki committed Jun 12, 2024
1 parent 882d69c commit f1405fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion events/messageCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = (client, message) => {
}

// Gumroad message logic
const linkRegexGumroad = /https?:\/\/(www\.)?gumroad\.com\/l\/[^\s]+/g;
const linkRegexGumroad = /https?:\/\/[^\s.]+\.gumroad\.com\/l\/[^\s]+/g;
const foundLinksGumroad = message.content.match(linkRegexGumroad);

if (foundLinksGumroad) {
Expand Down

0 comments on commit f1405fa

Please sign in to comment.