mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-14 19:25:43 +00:00
Make shell.programs filter .lua extension
This commit is contained in:
parent
922818dfa5
commit
516bd8cf03
@ -180,7 +180,11 @@ function shell.programs( _bIncludeHidden )
|
||||
-- Sort and return
|
||||
local tItemList = {}
|
||||
for sItem, b in pairs( tItems ) do
|
||||
table.insert( tItemList, sItem )
|
||||
if sItem:find(".lua") == sItem:len()-3 then
|
||||
table.insert( tItemList, sItem:sub(1,-5) )
|
||||
else
|
||||
table.insert( tItemList, sItem )
|
||||
end
|
||||
end
|
||||
table.sort( tItemList )
|
||||
return tItemList
|
||||
|
Loading…
Reference in New Issue
Block a user