11 lines
181 B
Dart
11 lines
181 B
Dart
|
String cleanUpUrl(String url) {
|
||
|
if (url.startsWith('https://')) {
|
||
|
url = url.substring(8);
|
||
|
}
|
||
|
if (url.startsWith('www.')) {
|
||
|
url = url.substring(4);
|
||
|
}
|
||
|
|
||
|
return url;
|
||
|
}
|