mirror of
https://github.com/KokaKiwi/BarInsta
synced 2025-11-20 21:06:32 +00:00
Replace instagr.am with instagram.com
This commit is contained in:
parent
fdcc6768bc
commit
b741ff9ccb
1 changed files with 3 additions and 0 deletions
|
|
@ -12,6 +12,9 @@ public final class IntentUtils {
|
|||
|
||||
@Nullable
|
||||
public static IntentModel parseUrl(@NonNull String url) {
|
||||
if (url.contains("instagr.am/")) {
|
||||
url = url.replaceFirst("s?://(?:www\\.)?instagr\\.am/", "s://www.instagram.com/");
|
||||
}
|
||||
final int wwwDel = url.contains("www.") ? 4 : 0;
|
||||
final boolean isHttps = url.startsWith("https");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue