opt: http2https

This commit is contained in:
bggRGjQaUbCoE
2024-10-12 21:06:30 +08:00
parent cfcfa2da5b
commit 86a21d8fc4
5 changed files with 21 additions and 11 deletions

View File

@@ -41,3 +41,7 @@ extension ListExt<T> on List<T>? {
bool ne(List<T>? other) => !eq(other);
}
extension StringExt on String {
String get http2https => replaceFirst(RegExp("^http://"), "https://");
}