mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fix regex for IPAddress.dns_name (but see #3106)
This commit is contained in:
@@ -2,7 +2,7 @@ from django.core.validators import RegexValidator
|
||||
|
||||
|
||||
DNSValidator = RegexValidator(
|
||||
regex='^[a-z]+$',
|
||||
regex='^[0-9A-Za-z.-]+$',
|
||||
message='Only alphanumeric characters, hyphens, and periods are allowed in DNS names',
|
||||
code='invalid'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user