aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/gen_iface.lua
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2009-01-25 21:09:41 -0500
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2009-01-25 21:09:41 -0500
commit2066415f82ba4fdda8d6f3020024d9fbf997e3da (patch)
tree4d7f591a9d02ac48ad024a2956f8f13ef26f6a1c /scripts/gen_iface.lua
parentf0dceb28f133d8392c8947155dc8582ec7737783 (diff)
Replaced str:match with str:find where applicable for speed improvements.
Diffstat (limited to 'scripts/gen_iface.lua')
-rwxr-xr-xscripts/gen_iface.lua2
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