theforeman/foreman — pull request #211 by Telmo (2012-10-25 15:29:17+00:00)
Title: Fixes validation for hostnames containing hyphens for NFS mounts

Small change to the regex that handles the validation for hostnames for NFS mounts.

The validation failed when the hostname contained a hyphen which is a valid character for a hostname:

http://rubular.com/r/A8dMgkPMIX

The addition of the hyphen to the regex fixes this issue.

http://rubular.com/r/2pThhobSlz