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. --- scripts/gen_iface.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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 -- cgit v1.2.3