1
0
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:
Daniel Ratcliffe 2017-05-16 22:59:39 +01:00 committed by GitHub
parent 516bd8cf03
commit 3d1eb830c7

View File

@ -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 )