mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 15:01:49 +00:00
replace string.lower, string.upper with utf8 versions
This commit is contained in:
parent
3e86d49a7b
commit
329d4903d8
1 changed files with 3 additions and 0 deletions
|
|
@ -159,6 +159,9 @@ function string.trim_left(s, char)
|
||||||
return string.match(s, "^" .. char .. "*(.+)$") or s
|
return string.match(s, "^" .. char .. "*(.+)$") or s
|
||||||
end
|
end
|
||||||
|
|
||||||
|
string.lower = utf8.lower
|
||||||
|
string.upper = utf8.upper
|
||||||
|
|
||||||
local meta = getmetatable("")
|
local meta = getmetatable("")
|
||||||
|
|
||||||
function meta:__index(key)
|
function meta:__index(key)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue