From 94a0508487492ae46551e47d76d1ef07b6a0df0e Mon Sep 17 00:00:00 2001 From: Francesco Abbate Date: Sun, 29 Nov 2020 14:43:14 +0100 Subject: [PATCH] Fix problem with gmatch on utf8 characters when using luajit --- data/core/common.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/core/common.lua b/data/core/common.lua index 1a1b22cd..d1b444f5 100644 --- a/data/core/common.lua +++ b/data/core/common.lua @@ -8,7 +8,7 @@ end function common.utf8_chars(text) - return text:gmatch("[\0-\x7f\xc2-\xf4][\x80-\xbf]*") + return text:gmatch("[\x01-\x7f\xc2-\xf4][\x80-\xbf]*") end