Fixed bug

This commit is contained in:
hahwul 2022-11-26 00:54:38 +09:00
parent d19a201a32
commit 973db35ef1

View File

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