mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-04-05 17:07:03 +00:00
[AB-130] making the regex for link embeds more relaxed in order to allow embedding canary and ptb links
This commit is contained in:
@@ -30,7 +30,7 @@ import java.util.regex.Pattern;
|
|||||||
@Slf4j
|
@Slf4j
|
||||||
public class MessageEmbedServiceBean implements MessageEmbedService {
|
public class MessageEmbedServiceBean implements MessageEmbedService {
|
||||||
|
|
||||||
private Pattern messageRegex = Pattern.compile("(?<whole>https://discord(?:app)?.com/channels/(?<server>\\d+)/(?<channel>\\d+)/(?<message>\\d+)(?:.*?))+");
|
private final Pattern messageRegex = Pattern.compile("(?<whole>(?:https?://)?(?:\\w+\\.)?discord(?:app)?\\.com/channels/(?<server>\\d+)/(?<channel>\\d+)/(?<message>\\d+)(?:.*?))+");
|
||||||
|
|
||||||
public static final String MESSAGE_EMBED_TEMPLATE = "message_embed";
|
public static final String MESSAGE_EMBED_TEMPLATE = "message_embed";
|
||||||
public static final String REMOVAL_EMOTE = "removeEmbed";
|
public static final String REMOVAL_EMOTE = "removeEmbed";
|
||||||
|
|||||||
Reference in New Issue
Block a user