Added Entities#stripScheme(String)
This commit is contained in:
parent
133b1bfa77
commit
6fd64a1730
1 changed files with 4 additions and 0 deletions
|
@ -5,6 +5,10 @@ import com.moandjiezana.tent.client.users.Profile;
|
|||
|
||||
public class Entities {
|
||||
|
||||
public static String stripScheme(String entity) {
|
||||
return entity.replace("http://", "").replace("https://", "");
|
||||
}
|
||||
|
||||
public static String getForUrl(String entity) {
|
||||
String prefix = entity.startsWith("http://") ? "h:" : "";
|
||||
String urlEntity = entity.replace("http://", "").replace("https://", "");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue