aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_register.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_register.lua')
-rw-r--r--plugins/mod_register.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_register.lua b/plugins/mod_register.lua
index f89efe20..7a57d65b 100644
--- a/plugins/mod_register.lua
+++ b/plugins/mod_register.lua
@@ -64,7 +64,7 @@ for _, field in ipairs(additional_fields) do
registration_form[#registration_form + 1] = field;
else
if field:match("%+$") then
- field = field:sub(1, #field - 1);
+ field = field:sub(1, -2);
field_map[field].required = true;
end