1
Fork 0

update regex ^_^

This commit is contained in:
ashley 2024-07-16 19:44:19 +00:00
parent 1d2fdc3ea2
commit d659e388fd

View file

@ -169,7 +169,7 @@ const CORD_REGEX = /https:\/\/discord.gg\/(?<name>[\w\d_-]+)/;
const TWITCH_REGEX = /https:\/\/twitch.tv\/(?<name>[\w\d_-]+)/; const TWITCH_REGEX = /https:\/\/twitch.tv\/(?<name>[\w\d_-]+)/;
const REDDIT_REGEX = /https:\/\/reddit\.com\/r\/(?<name>[\w\d_-]+)/; const REDDIT_REGEX = /https:\/\/reddit\.com\/r\/(?<name>[\w\d_-]+)/;
const INSTAGRAM_REGEX = /https:\/\/www.instagram.com\/(?<name>[\w\d_-]+)/; const INSTAGRAM_REGEX = /https:\/\/www.instagram.com\/(?<name>[\w\d_-]+)/;
const LNKTO_REGEX = /https:\/\/(?:www\.)?\w+\.lnk\.to\/(?<path>\S*)/; const LNKTO_REGEX = /https:\/\/(?<subdomain>\w+)\.lnk\.to\/(?<path>\S*)/;
module.exports = function (app, config, renderTemplate) { module.exports = function (app, config, renderTemplate) {
app.get("/encryption", async function (req, res) { app.get("/encryption", async function (req, res) {