package co.ello.ElloApp;

public class ElloURI {

    private final static String TAG = ElloURI.class.getSimpleName();

    public static boolean shouldLoadInApp(String url) {
        if (url.matches("^(https?://)?((w{3}|preview.)?ello.(co|ninja)|(ello-webapp-epic|ello-webapp-rainbow|ello-fg-stage1|ello-fg-stage2).herokuapp.com)/?\\S*$")) {
            return true;
        }
        else if (url.matches("/\\S*$")) {
            return true;
        }
        else {
            return false;
        }
    }
}

@@ -177,20 +177,23 @@
         
-if (
+return 
 url.matc
@@ -339,174 +339,34 @@
 *$%22)
-) %7B%0A            return true;%0A        %7D%0A        else if (url.matches(%22/%5C%5CS*$%22)) %7B%0A            return true;%0A        %7D%0A        else %7B%0A            return false;%0A        %7D
+ %7C%7C url.matches(%22/%5C%5CS*$%22);
 %0A   

simplify uri condition.