aboutsummaryrefslogtreecommitdiff
path: root/core/ext/pm/modules_browser.lua
diff options
context:
space:
mode:
Diffstat (limited to 'core/ext/pm/modules_browser.lua')
-rw-r--r--core/ext/pm/modules_browser.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/ext/pm/modules_browser.lua b/core/ext/pm/modules_browser.lua
index 757e7d93..5cf93d25 100644
--- a/core/ext/pm/modules_browser.lua
+++ b/core/ext/pm/modules_browser.lua
@@ -88,7 +88,7 @@ function get_contents_for(full_path)
local dir = {}
local dirpath = table.concat(full_path, '/')
for name in lfs.dir(dirpath) do
- if not name:match('^%.') then
+ if not name:find('^%.') then
dir[name] = { text = name }
if lfs.attributes(dirpath..'/'..name, 'mode') == 'directory' then
dir[name].parent = true
@@ -173,7 +173,7 @@ function perform_menu_action(menu_item, menu_id, selected_item)
}) == '1' then
local function remove_directory(dirpath)
for name in lfs.dir(dirpath) do
- if not name:match('^%.%.?$') then os.remove(dirpath..'/'..name) end
+ if not name:find('^%.%.?$') then os.remove(dirpath..'/'..name) end
end
lfs.rmdir(dirpath)
end