Skip to content

Commit

Permalink
Update services.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ManeraKai authored Dec 11, 2023
1 parent 473e196 commit 94f7690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/assets/javascripts/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) // <blog>.tumblr.com
const blogregex = /^(?:www\.)?([a-z\d-]+)\.tumblr\.com/.exec(url.hostname) // <blog>.tumblr.com
if (blogregex) {
const blog_name = blogregex[1];
// Under the <blog>.tumblr.com domain posts are under a /post path
Expand Down

0 comments on commit 94f7690

Please sign in to comment.