Commits

Juha Kuitunen committed 7c7c09a

Added support for [[url]] type of links

  • Participants
  • Parent commits b10b6ec

Comments (0)

Files changed (1)

src/com/saibotd/bitbeaker/WikiActivity.java

 
 import android.app.ProgressDialog;
 import android.os.Bundle;
-import android.util.Log;
 import android.webkit.WebChromeClient;
 import android.webkit.WebView;
 import android.webkit.WebViewClient;
 
 			// add prefix to local URLs (not starting with "http")
 			data = data.replaceAll("\\[\\[((?!.*http).*)\\|(.*)\\]\\]", "[[https://api.bitbucket.org/1.0/repositories/"+ owner +"/"+ slug +"/wiki/$1|$2]]");
+			data = data.replaceAll("\\[\\[((?!.*http).*)\\]\\]",        "[[https://api.bitbucket.org/1.0/repositories/"+ owner +"/"+ slug +"/wiki/$1|$1]]");
 
 		} catch (JSONException e) {
 			// TODO Auto-generated catch block