aboutsummaryrefslogtreecommitdiff
path: root/core/ext/pm/file_browser.lua
diff options
context:
space:
mode:
Diffstat (limited to 'core/ext/pm/file_browser.lua')
-rw-r--r--core/ext/pm/file_browser.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ext/pm/file_browser.lua b/core/ext/pm/file_browser.lua
index 87d4b8e6..7c03518a 100644
--- a/core/ext/pm/file_browser.lua
+++ b/core/ext/pm/file_browser.lua
@@ -23,7 +23,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