mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-04-26 08:46:06 +00:00
Fixed issue domain checking
This commit is contained in:
parent
05815af868
commit
98f7613fe3
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ class _CheckHostModalState extends State<CheckHostModal> {
|
|||
Widget? resultWidget;
|
||||
|
||||
void validateDomain(String value) {
|
||||
final domainRegex = RegExp(r'^(([a-zA-Z]{1})|([a-zA-Z]{1}[a-zA-Z]{1})|([a-zA-Z]{1}[0-9]{1})|([0-9]{1}[a-zA-Z]{1})|([a-zA-Z0-9][a-zA-Z0-9-_]{1,61}[a-zA-Z0-9]))\.([a-zA-Z]{2,6}|[a-zA-Z0-9-]{2,30}\.[a-zA-Z]{2,3})$');
|
||||
final domainRegex = RegExp(r'^([a-z0-9|-]+\.)*[a-z0-9|-]+\.[a-z]+$');
|
||||
if (domainRegex.hasMatch(value)) {
|
||||
setState(() => domainError = null);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue