CAKE-136 | added "-" symbol to node_address_validator.dart; changed minLength from 1 to 0 in the node_port_validator.dart

OleksandrSobol committed Oct 30, 2020 at 15:11 UTC 9748caf4076780acfd8a1f9850d0d52f37f2cdd8
2 files changed +2 -2
lib/core/node_address_validator.dart
+1 -1
@@ -6,5 +6,5 @@ class NodeAddressValidator extends TextValidator {
6 : super(
7 errorMessage: S.current.error_text_node_address,
8 pattern:
9 - '^((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.]+\$');
9 + '^((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.\-]+\$');
10 }
lib/core/node_port_validator.dart
+1 -1
@@ -6,7 +6,7 @@ class NodePortValidator extends TextValidator {
6 NodePortValidator()
7 : super(
8 errorMessage: S.current.error_text_node_port,
9 - minLength: 1,
9 + minLength: 0,
10 maxLength: 5,
11 pattern: '^[0-9]');
12 }