fix nodename pattern

This commit is contained in:
AFCMS 2021-03-10 20:41:41 +01:00
parent 11384bd73c
commit a51bbb6974
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ mcl_commands.types = {
return S("Color is not a valid color name or hexadecimal!")
end
end},
nodename = {"^(%l+[%w_]+%:?[_%l]+[%w_]*)$",
nodename = {"(%l+[%w_]+%:?[_%l]+[%w_]*)",
function(res, pointer)
if minetest.registered_items[res[pointer]] then
return nil, res[pointer], pointer+1