Skip to content

Commit 065e666

Browse files
committed
Style fixes
1 parent dc881a0 commit 065e666

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_plugins/translation_status.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def completed?
6060

6161
def short_name
6262
if name.size > POST_DISPLAY_LENGTH
63-
name[0...POST_DISPLAY_LENGTH - 3] + "..."
63+
"#{name[0...POST_DISPLAY_LENGTH - 3]}..."
6464
else
6565
name
6666
end
@@ -115,7 +115,7 @@ def render(context)
115115
categories[lang].each do |post|
116116
next if too_old(post.date)
117117

118-
name = post.url.gsub(%r(\A/#{lang}/news/), "")
118+
name = post.url.gsub(%r{\A/#{lang}/news/}, "")
119119
@posts[name].translations << lang
120120
@posts[name].security = true if post.data["tags"].include?("security")
121121
end

0 commit comments

Comments
 (0)