From 16f8f7226ef80035d1ac01a510e66fc3143ad6c5 Mon Sep 17 00:00:00 2001 From: Frans de Jonge Date: Mon, 14 Aug 2017 22:30:42 +0200 Subject: [PATCH] [chore] util: deprecated string.gfind to string.gmatch --- frontend/util.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/util.lua b/frontend/util.lua index 557f44f1a..eb242d3b8 100644 --- a/frontend/util.lua +++ b/frontend/util.lua @@ -132,7 +132,7 @@ function util.splitToChars(text) local tab = {} if text ~= nil then local prevcharcode, charcode = 0 - for uchar in string.gfind(text, "([%z\1-\127\194-\244][\128-\191]*)") do + for uchar in string.gmatch(text, "([%z\1-\127\194-\244][\128-\191]*)") do charcode = BaseUtil.utf8charcode(uchar) if prevcharcode then -- utf8 table.insert(tab, uchar)