From 0608fc42293492b7d2f0f13dc4dd27f13f422858 Mon Sep 17 00:00:00 2001 From: Avril Date: Sun, 21 Jun 2020 06:10:51 +0100 Subject: [PATCH] music link --- client/embed.js | 2 +- common.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/embed.js b/client/embed.js index a81197e..36cfdcf 100644 --- a/client/embed.js +++ b/client/embed.js @@ -1,4 +1,4 @@ -var internal_url_re = /(?:>>>)?(?:https?:\/\/)?flanchan\.moe\/s\/(.+)/; +var internal_url_re = /(?:>>>)?(?:https?:\/\/)?flanchan\.moe\/(?:music\/)?s\/(.+)/; /* YOUTUBE */ diff --git a/common.js b/common.js index 1aa8cb1..a3bb030 100644 --- a/common.js +++ b/common.js @@ -201,7 +201,7 @@ var OS = OneeSama.prototype; var break_re = new RegExp("(\\S{" + DEFINES.WORD_LENGTH_LIMIT + "})"); /* internal refs, embeds */ -var ref_re = />>(\d+|>\/s\/.+|>\/watch\?v=[\w-]{11}(?:#t=[\dhms]{1,9})?|>\/soundcloud\/[\w-]{1,40}\/[\w-]{1,80}|>\/@\w{1,15}\/\d{4,20}(?:\?s=\d+)?|>\/(?:a|sysint|nap)\/\d{0,10})/; +var ref_re = />>(\d+|>\/s\/.+|>\/music\/s\/.+|>\/watch\?v=[\w-]{11}(?:#t=[\dhms]{1,9})?|>\/soundcloud\/[\w-]{1,40}\/[\w-]{1,80}|>\/@\w{1,15}\/\d{4,20}(?:\?s=\d+)?|>\/(?:a|sysint|nap)\/\d{0,10})/; OS.hook = function (name, func) { var hs = this.hooks[name];