britzl / gooey

Defold GUI system
MIT License
150 stars 22 forks source link

Bug: text:gmatch instead of text:gfind? #37

Closed lutz-harder closed 5 years ago

lutz-harder commented 5 years ago

Hi Britzl,

it seems, there is a bug in Gooey:

In master/gooey/internal/input.lua, line 37, you use:

function M.utf8_gfind(text) return text:gfind("([%z\1-\127\194-\244][\128-\191]*)") end

That seems to be deprecated and causes an error. I assume, it should be replaced by:

function M.utf8_gfind(text) return text:gmatch("([%z\1-\127\194-\244][\128-\191]*)") end

Regards, Lutz

britzl commented 5 years ago

Fixed in 7.2.2