From 19debaf9ca4344ed02014aadefa6962cc5272b10 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