diff options
author | 2009-01-25 21:09:41 -0500 | |
---|---|---|
committer | 2009-01-25 21:09:41 -0500 | |
commit | 2066415f82ba4fdda8d6f3020024d9fbf997e3da (patch) | |
tree | 4d7f591a9d02ac48ad024a2956f8f13ef26f6a1c /core/ext/find.lua | |
parent | f0dceb28f133d8392c8947155dc8582ec7737783 (diff) | |
download | textadept-2066415f82ba4fdda8d6f3020024d9fbf997e3da.tar.gz textadept-2066415f82ba4fdda8d6f3020024d9fbf997e3da.zip |
Replaced str:match with str:find where applicable for speed improvements.
Diffstat (limited to 'core/ext/find.lua')
-rw-r--r-- | core/ext/find.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |