We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e08b36 commit acf4a19Copy full SHA for acf4a19
1 file changed
primitives/dummy.lua
@@ -71,7 +71,7 @@ local rep = string.rep
71
local sub = string.sub
72
local upper = string.upper
73
74
-local utf8charpattern = '[\0-\127\194-\244][\128-\191]*'
+local utf8charpattern = '[%z\1-\127\194-\244][\128-\191]*'
75
76
local function utf8symbollen(byte)
77
return not byte and 0 or (byte < 0x80 and 1) or (byte >= 0xF0 and 4) or (byte >= 0xE0 and 3) or (byte >= 0xC0 and 2) or 1
0 commit comments