mirror of
https://github.com/hiddify/hiddify-next.git
synced 2026-06-05 21:05:07 +08:00
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:
parent
7b6b203a6f
commit
ce76702c2d
@ -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(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user