mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
8 lines
231 B
Dart
8 lines
231 B
Dart
final _regExp = RegExp("^(http:)?//", caseSensitive: false);
|
|
|
|
extension StringExt on String? {
|
|
String get http2https => this?.replaceFirst(_regExp, "https://") ?? '';
|
|
|
|
bool get isNullOrEmpty => this == null || this!.isEmpty;
|
|
}
|