adguard-home-manager/lib/functions/is_ip.dart

10 lines
233 B
Dart
Raw Normal View History

import 'package:adguard_home_manager/constants/regexps.dart';
2024-06-18 21:50:38 +02:00
bool isIpAddress(String value) {
if (Regexps.ipv4Address.hasMatch(value) || Regexps.ipv6Address.hasMatch(value)) {
2024-06-18 21:50:38 +02:00
return true;
}
else {
return false;
}
}