MCPcopy Index your code
hub / github.com/Tencent/APIJSON / isUrl

Method isUrl

APIJSONORM/src/main/java/apijson/StringUtil.java:673–683  ·  view source on GitHub ↗

判断字符类型是否是网址 @param url @return

(String url)

Source from the content-addressed store, hash-verified

671 * @return
672 */
673 public static boolean isUrl(String url) {
674 if (isNotEmpty(url, true) == false) {
675 return false;
676 }
677 if (! url.startsWith(URL_PREFIX) && ! url.startsWith(URL_PREFIXs)) {
678 return false;
679 }
680
681 current = url;
682 return true;
683 }
684
685 public static boolean isBranchUrl(String branchUrl) {
686 if (isEmpty(branchUrl, false)) {

Callers 1

getCorrectUrlMethod · 0.95

Calls 1

isNotEmptyMethod · 0.95

Tested by

no test coverage detected