1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2025-10-16 07:35:27 +02:00

Check empty command parameters strictly

This commit is contained in:
sfan5
2025-09-24 21:29:39 +02:00
parent 9670a6d4e0
commit 08ab19fcbb
2 changed files with 5 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ local description_cache = nil
-- normalizes node "description" `nodename`, returning a string (or nil)
worldedit.normalize_nodename = function(nodename)
nodename = nodename:gsub("^%s*(.-)%s*$", "%1") -- strip spaces
nodename = nodename:trim()
if nodename == "" then
return nil
end