Skip to content

Commit

Permalink
Also match dash for pixiv username.
Browse files Browse the repository at this point in the history
  • Loading branch information
nanaya committed Nov 20, 2014
1 parent 9c86862 commit ddba8cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/assets/javascripts/moe-legacy/browser-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ BrowserView.prototype.set_post_info = function()
var text = post.source;
var url = null;

var m = post.source.match(/^http:\/\/.*pixiv\.net\/(img\d+\/)?img\/(\w+)\/(\d+)(_.+)?\.\w+$/);
var m = post.source.match(/^http:\/\/.*pixiv\.net\/(img\d+\/)?img\/([-\w]+)\/(\d+)(_.+)?\.\w+$/);
if(m)
{
text = "pixiv #" + m[3] + " (" + m[2] + ")";
Expand Down

0 comments on commit ddba8cc

Please sign in to comment.