diff options
author | 2009-01-25 21:09:41 -0500 | |
---|---|---|
committer | 2009-01-25 21:09:41 -0500 | |
commit | 2066415f82ba4fdda8d6f3020024d9fbf997e3da (patch) | |
tree | 4d7f591a9d02ac48ad024a2956f8f13ef26f6a1c /scripts/gen_iface.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 'scripts/gen_iface.lua')
-rwxr-xr-x | scripts/gen_iface.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gen_iface.lua b/scripts/gen_iface.lua index c968131d..63508c37 100755 --- a/scripts/gen_iface.lua +++ b/scripts/gen_iface.lua @@ -21,7 +21,7 @@ out = out..'textadept.constants = {\n' -- {"constant", value} for item in constants:sub(2, -2):gmatch('%b{}') do local name, value = item:match('^{"(.-)",(.-)}') - if not name:match('^IDM_') then + if not name:find('^IDM_') then if name == 'SC_MASK_FOLDERS' then value = '-33554432' end local line = (" %s = %s,\n"):format(name, value) out = out..line |