refactor: change port range separator from '-' to ':' to simplify GenericListPage and notifier logic by eliminating the need for conversion during read/write

This commit is contained in:
veto9292 2026-05-17 23:02:26 +03:30
parent 7b6b203a6f
commit ce76702c2d

View File

@ -34,7 +34,7 @@ final _processPathLinuxRegex = RegExp(r'^/([^/]*(?<!/)/)*[^/]+$');
final _processPathMacOSRegex = RegExp(r'^/([^/:]*(?<!/)/)*[^/:]+$');
final _portOrPortRangeRegex = RegExp(
r'^(65000|6[0-4]\d{3}|[1-5]\d{4}|[1-9]\d{0,3})(-(65000|6[0-4]\d{3}|[1-5]\d{4}|[1-9]\d{0,3}))?$',
r'^(65000|6[0-4]\d{3}|[1-5]\d{4}|[1-9]\d{0,3})(:(65000|6[0-4]\d{3}|[1-5]\d{4}|[1-9]\d{0,3}))?$',
);
final _ipCidrRegex = RegExp(