15 lines
209 B
Lua
Raw Normal View History

2023-03-08 11:53:41 +08:00
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