luautf8 icon indicating copy to clipboard operation
luautf8 copied to clipboard

Function title does the same thing as function upper

Open bpj opened this issue 10 months ago • 3 comments

It seems like function title does the same thing as function upper:

local lua_utf8 = require("lua-utf8")
local str = 'någonting, нічого, τίποτα'
print(lua_utf8.title(str))
print(lua_utf8.upper(str))
NÅGONTING, НІЧОГО, ΤΊΠΟΤΑ
NÅGONTING, НІЧОГО, ΤΊΠΟΤΑ

Just for clarity:

str = 'någonting, нічого, τίποτα'

title = NÅGONTING, НІЧОГО, ΤΊΠΟΤΑ

upper = NÅGONTING, НІЧОГО, ΤΊΠΟΤΑ

expected title = Någonting, Нічого, Τίποτα

luautf8 0.1.6-1

bpj avatar Jan 12 '25 15:01 bpj