mirror of
https://github.com/hahwul/WebHackersWeapons.git
synced 2024-12-18 20:24:27 -05:00
Improve code
This commit is contained in:
parent
84681f53e7
commit
f2cf19ad49
@ -165,7 +165,7 @@ weapons.each do | data |
|
|||||||
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']}.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
|
end
|
||||||
rescue
|
rescue
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user