From 94f7690e1dc238dbc65e4261c83c5085796b4007 Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Mon, 11 Dec 2023 10:58:32 +0000 Subject: [PATCH] Update services.js --- src/assets/javascripts/services.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index b1b0fdaa..4649c8e3 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -582,7 +582,7 @@ function redirect(url, type, initiator, forceRedirection, incognito) { if (reg) return `${randomInstance}/tblr/media/${reg[1]}${url.pathname}${url.search}` - const blogregex = /^(?:www\.)?([a-z\d]+)\.tumblr\.com/.exec(url.hostname) // .tumblr.com + const blogregex = /^(?:www\.)?([a-z\d-]+)\.tumblr\.com/.exec(url.hostname) // .tumblr.com if (blogregex) { const blog_name = blogregex[1]; // Under the .tumblr.com domain posts are under a /post path