diff --git a/lib/core/node_address_validator.dart b/lib/core/node_address_validator.dart index 676a768ea..0e034dabc 100644 --- a/lib/core/node_address_validator.dart +++ b/lib/core/node_address_validator.dart @@ -6,5 +6,5 @@ class NodeAddressValidator extends TextValidator { : super( errorMessage: S.current.error_text_node_address, pattern: - '^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\$|^[0-9a-zA-Z.]+\$'); + '^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\$|^[0-9a-zA-Z.\-]+\$'); } diff --git a/lib/core/node_port_validator.dart b/lib/core/node_port_validator.dart index b7a2f0221..16be00dde 100644 --- a/lib/core/node_port_validator.dart +++ b/lib/core/node_port_validator.dart @@ -6,7 +6,7 @@ class NodePortValidator extends TextValidator { NodePortValidator() : super( errorMessage: S.current.error_text_node_port, - minLength: 1, + minLength: 0, maxLength: 5, pattern: '^[0-9]'); }