Skip to content

Commit

Permalink
fix: fixed message link regex
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-737 committed Nov 18, 2024
1 parent 7968f46 commit 6ab6b96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/Constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default {
Hexcode: /^#[0-9A-F]{6}$/i,
ChannelMention: /<#|!|>/g,
ImgurImage: /https?:\/\/i\.imgur\.com\/[a-zA-Z0-9]+\.((jpg)|(jpeg)|(png)|(gif))/g,
MessageLink: /https:\/\/discord.com\/channels\/(\d{17,19})\/(\d{17,19})\/(\d{17,19})/g,
MessageLink: /https:\/\/(?:canary\.|ptb\.)?discord\.com\/channels\/(\d+)\/(\d+)\/(\d+)/,
SimpleRegexEscape: /[.*+?^${}()|[\]\\]/g,
RegexChars: /[-[\]{}()*+?.,\\^$|#\s]/g,
},
Expand Down

0 comments on commit 6ab6b96

Please sign in to comment.