MCPcopy Index your code
hub / github.com/OperationT00/T-Code / extractHost

Method extractHost

src/main/java/com/tcode/web/SearchResult.java:19–29  ·  view source on GitHub ↗
(String url)

Source from the content-addressed store, hash-verified

17 }
18
19 private static String extractHost(String url) {
20 if (url == null || url.isBlank()) {
21 return "";
22 }
23 try {
24 String host = java.net.URI.create(url).getHost();
25 return host == null ? "" : host;
26 } catch (Exception e) {
27 return "";
28 }
29 }
30}

Callers 1

ofMethod · 0.95

Calls 1

createMethod · 0.45

Tested by

no test coverage detected