This commit is contained in:
r888888888
2014-02-28 18:10:36 -08:00
parent b523ed471c
commit 0ef37c0538
3 changed files with 7 additions and 7 deletions

View File

@@ -17,10 +17,6 @@ module PostsHelper
end
end
def wordbreakify(string)
string.gsub(/(.{15})/, "\\1<wbr>")
end
def post_source_tag(post)
if post.source =~ %r!http://img\d+\.pixiv\.net/img/([^\/]+)/!
text = "pixiv/<wbr>#{wordbreakify($1)}"