forked from VoxeLibre/VoxeLibre
fix nodename pattern
This commit is contained in:
parent
11384bd73c
commit
a51bbb6974
|
@ -133,7 +133,7 @@ mcl_commands.types = {
|
||||||
return S("Color is not a valid color name or hexadecimal!")
|
return S("Color is not a valid color name or hexadecimal!")
|
||||||
end
|
end
|
||||||
end},
|
end},
|
||||||
nodename = {"^(%l+[%w_]+%:?[_%l]+[%w_]*)$",
|
nodename = {"(%l+[%w_]+%:?[_%l]+[%w_]*)",
|
||||||
function(res, pointer)
|
function(res, pointer)
|
||||||
if minetest.registered_items[res[pointer]] then
|
if minetest.registered_items[res[pointer]] then
|
||||||
return nil, res[pointer], pointer+1
|
return nil, res[pointer], pointer+1
|
||||||
|
|
Loading…
Reference in New Issue