Commit 37ed42bd authored by Aleksey Shirokih's avatar Aleksey Shirokih
Browse files

Restrict usage of dot at the end of nodename

parent 4a2b8b42
......@@ -117,7 +117,7 @@ var node_form = {
required: true,
bottomLabel: "Hostname of server will be replaced with that name. Along with ip address will be placed to /etc/hosts",
invalidMessage: "Cannot be empty, have to be alphanumeric",
validate: Tower.rules.regex(/^[a-zA-Z0-9\_\.-]*$/)
validate: Tower.rules.regex(/^[a-zA-Z0-9\_\.-]*[a-zA-Z0-9]$/)
view: "checkbox",
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment