mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-08 08:38:16 -06:00
Fixes #4074: DNS regex validator mathes 0 or more
This commit is contained in:
parent
2296cdc222
commit
1dac3be21b
@ -16,6 +16,7 @@
|
|||||||
* [#3313](https://github.com/netbox-community/netbox/issues/3313) - Toggle config context display between JSON and YAML
|
* [#3313](https://github.com/netbox-community/netbox/issues/3313) - Toggle config context display between JSON and YAML
|
||||||
* [#3886](https://github.com/netbox-community/netbox/issues/3886) - Enable assigning config contexts by cluster and cluster group
|
* [#3886](https://github.com/netbox-community/netbox/issues/3886) - Enable assigning config contexts by cluster and cluster group
|
||||||
* [#4051](https://github.com/netbox-community/netbox/issues/4051) - Disable the `makemigrations` management command
|
* [#4051](https://github.com/netbox-community/netbox/issues/4051) - Disable the `makemigrations` management command
|
||||||
|
* [#4074](https://github.com/netbox-community/netbox/issues/4074) - DNS regex validation matches 0 or more
|
||||||
|
|
||||||
## Bug Fixes
|
## Bug Fixes
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ class MinPrefixLengthValidator(BaseValidator):
|
|||||||
|
|
||||||
|
|
||||||
DNSValidator = RegexValidator(
|
DNSValidator = RegexValidator(
|
||||||
regex='^[0-9A-Za-z._-]+$',
|
regex='^[0-9A-Za-z._-]*$',
|
||||||
message='Only alphanumeric characters, hyphens, periods, and underscores are allowed in DNS names',
|
message='Only alphanumeric characters, hyphens, periods, and underscores are allowed in DNS names',
|
||||||
code='invalid'
|
code='invalid'
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user