17 lines
211 B
Lua
17 lines
211 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
|
|
|