solvitdb: Improved sanitize() function

This commit is contained in:
2026-05-31 09:38:25 +03:00
parent cd5b71c110
commit 2b897106c5
+1 -1
View File
@@ -145,7 +145,7 @@ function solvitdb.set(path, name, data)
local function sanitize(tab) local function sanitize(tab)
for _, item in pairs(tab) do for _, item in pairs(tab) do
if type(item) == "string" then if type(item) == "string" then
item = item:gsub("[;|]", "-") item = item:lower():gsub("[;|]", "-")
elseif type(item) == "table" then elseif type(item) == "table" then
sanitize(item) sanitize(item)
end end