mirror of
https://github.com/hahwul/WebHackersWeapons.git
synced 2024-12-18 04:04:29 -05:00
Improve code
This commit is contained in:
parent
84681f53e7
commit
f2cf19ad49
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user