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