mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 12:09:43 +00:00
Merge pull request #130 from cake-tech/CAKE-136-user-can't-add-node-address-with-dash
CAKE-136 | added "-" symbol to node_address_validator.dart; changed m…
This commit is contained in:
commit
827cda617b
2 changed files with 2 additions and 2 deletions
|
@ -6,5 +6,5 @@ class NodeAddressValidator extends TextValidator {
|
||||||
: super(
|
: super(
|
||||||
errorMessage: S.current.error_text_node_address,
|
errorMessage: S.current.error_text_node_address,
|
||||||
pattern:
|
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()
|
NodePortValidator()
|
||||||
: super(
|
: super(
|
||||||
errorMessage: S.current.error_text_node_port,
|
errorMessage: S.current.error_text_node_port,
|
||||||
minLength: 1,
|
minLength: 0,
|
||||||
maxLength: 5,
|
maxLength: 5,
|
||||||
pattern: '^[0-9]');
|
pattern: '^[0-9]');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue