2023-03-08 15:46:30 +08:00

15 lines
209 B
Lua

local M = {}
M.is_English = function(str)
local char = { str:byte(1, -1) }
for i = 1, #str do
if char[i] > 128 then
return false
end
end
return true
end
return M