Allow -'s in node hostname
Also limit it to 253 since that is the maximum hostname length.
This commit is contained in:
parent
6e7c5be0ea
commit
08c8beee77
|
@ -68,7 +68,7 @@ abstract class NodeListBase with Store {
|
|||
}
|
||||
}
|
||||
|
||||
static final nodeAddrRE = RegExp('^[0-9a-zA-Z.]+\$');
|
||||
static final nodeAddrRE = RegExp('^[0-9a-zA-Z.-]{1,253}\$');
|
||||
static final nodePortRE = RegExp('^[0-9]{1,5}\$');
|
||||
|
||||
void validateNodeAddress(String value, AppLocalizations l10n) {
|
||||
|
|
Loading…
Reference in New Issue