Improve code

This commit is contained in:
hahwul 2022-11-26 00:50:00 +09:00
parent 84681f53e7
commit f2cf19ad49

View File

@ -165,7 +165,7 @@ weapons.each do | data |
begin
if data['lang'].length > 0 && data['lang'] != "null"
langs.push "[`#{data['lang']}`](/categorize/langs/#{data['lang']}.md)"
lang_badge = "[![#{data['lang']}](/images/#{data['lang'].downcase}.png)](/categorize/langs/#{data['lang']}.md)"
lang_badge = "[![#{data['lang']}](/images/#{data['lang'].downcase.sub('#','%23')}.png)](/categorize/langs/#{data['lang']}.md)"
end
rescue
end