Skip to content

Commit aac492d

Browse files
authored
Fix minus character (-) being stripped from signs (#3210)
1 parent c526be3 commit aac492d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mods/default/nodes.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2620,7 +2620,7 @@ local function register_sign(material, desc, def)
26202620
minetest.chat_send_player(player_name, S("Text too long"))
26212621
return
26222622
end
2623-
text = text:gsub("[%z-\8\11-\31\127]", "") -- strip naughty control characters (keeps \t and \n)
2623+
text = text:gsub("[%z\1-\8\11-\31\127]", "") -- strip naughty control characters (keeps \t and \n)
26242624
default.log_player_action(sender, ("wrote %q to the sign at"):format(text), pos)
26252625
local meta = minetest.get_meta(pos)
26262626
meta:set_string("text", text)

0 commit comments

Comments
 (0)