Renamed string.gfind to string.gmatch

Lua 5.1: string.gfind renamed to string.gmatch
Lua 5.2: string.gfind removed

Signed-off-by: Arvydas Sidorenko <asido4@gmail.com>
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Arvydas Sidorenko 2012-12-01 14:02:49 +01:00 committed by Uli Schlachter
parent 4c094a279d
commit 56170db631
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ function utils.parse(file)
-- line separated by semicolon.
if program.Categories then
program.categories = {}
for category in program.Categories:gfind('[^;]+') do
for category in program.Categories:gmatch('[^;]+') do
table.insert(program.categories, category)
end
end