Files
MWClash/lib/common/string.dart
chen08209 e3c9035903 Update access control page
Fix bug
2024-08-11 17:08:46 +08:00

12 lines
234 B
Dart

extension StringExtension on String {
bool get isUrl {
return RegExp(r'^(http|https|ftp)://').hasMatch(this);
}
int compareToLower(String other) {
return toLowerCase().compareTo(
other.toLowerCase(),
);
}
}