From 2066415f82ba4fdda8d6f3020024d9fbf997e3da Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sun, 25 Jan 2009 21:09:41 -0500 Subject: Replaced str:match with str:find where applicable for speed improvements. --- core/ext/find.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/ext/find.lua') diff --git a/core/ext/find.lua b/core/ext/find.lua index 0b26ba45..e6f7f529 100644 --- a/core/ext/find.lua +++ b/core/ext/find.lua @@ -102,7 +102,7 @@ function find.find(text, next, flags, nowrap, wrapped) end function search_dir(directory) for file in lfs.dir(directory) do - if not file:match('^%.') then + if not file:find('^%.') then local path = directory..'/'..file local type = lfs.attributes(path).mode if type == 'directory' then -- cgit v1.2.3