Allow dot in custom interface name

This commit is contained in:
emanuele-f 2017-03-09 11:19:06 +01:00
parent 4ff05f620d
commit d3bb531341

View file

@ -918,7 +918,7 @@ elseif(page == "config") then
local label = getInterfaceNameAlias(ifstats.name)
inline_input_form("custom_name", "Custom Name",
"Specify an alias for the interface",
label, isAdministrator(), 'autocorrect="off" spellcheck="false" pattern="^[_\\-a-zA-Z0-9 ]*$"')
label, isAdministrator(), 'autocorrect="off" spellcheck="false" pattern="^[_\\-a-zA-Z0-9\\. ]*$"')
print[[
</td>
</tr>]]