Minor tweak

This commit is contained in:
Jean-Patrick Guerrero
2022-08-01 04:10:16 +02:00
parent a3fea93a09
commit 20b8110375
3 changed files with 4 additions and 3 deletions

View File

@ -80,7 +80,7 @@ end
local function utf8_len(str)
local c = 0
for _ in str:gmatch"([%z\1-\127\194-\244][\128-\191]*)" do -- Arguably working duct-tape code
for _ in str:gmatch"[%z\1-\127\194-\244][\128-\191]*" do -- Arguably working duct-tape code
c++
end