mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
CAKE-136 | added "-" symbol to node_address_validator.dart; changed minLength from 1 to 0 in the node_port_validator.dart
This commit is contained in:
@@ -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.\-]+\$');
|
||||
}
|
||||
|
||||
@@ -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]');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user