private static String orgURL(String trustUrl) {
		String url = trustUrl;
		url = url.replaceFirst("^https://github.com/(.*)/(.*)/$",
				"https://github.com/$1/");

		url = url.replaceFirst("^https://gitlab.com/(.*)/(.*)/$",
				"https://gitlab.com/$1/");

		url = url.replaceFirst("^https://bitbucket.org/(.*)/(.*)/$",
				"https://bitbucket.org/$1/");
		return trustUrl.equals(url) ? null : url;
	}
A <code>ResourceResolver</code> that, when given a resource string which
looks like a http, https or file URL, will try to download the referenced
document to the cache and return a reference to that file.
src/main/java/dev/jbang/source/resolvers/RemoteResourceResolver.java