mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-04-10 04:36:40 +00:00
Saner extension check
This commit is contained in:
parent
516bd8cf03
commit
3d1eb830c7
@ -180,7 +180,7 @@ function shell.programs( _bIncludeHidden )
|
||||
-- Sort and return
|
||||
local tItemList = {}
|
||||
for sItem, b in pairs( tItems ) do
|
||||
if sItem:find(".lua") == sItem:len()-3 then
|
||||
if sItem:sub(-4) == ".lua" then
|
||||
table.insert( tItemList, sItem:sub(1,-5) )
|
||||
else
|
||||
table.insert( tItemList, sItem )
|
||||
|
Loading…
x
Reference in New Issue
Block a user