Skip to content

Commit c67edb6

Browse files
committed
* init 0.1.0
1 parent 410a38d commit c67edb6

File tree

1 file changed

+5
-5
lines changed
  • src/main/java/io/github/xfuns/java

1 file changed

+5
-5
lines changed

src/main/java/io/github/xfuns/java/Fun.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2503,13 +2503,13 @@ public static boolean isUrl(final String url) {
25032503
*/
25042504
public static String urlNormalize(final String url) {
25052505
if (isUrl(url)) {
2506-
if (startsWith(url, URLFun.NO_PROTOCOL)) {
2507-
String formatUrl = removePrefix(url, URLFun.NO_PROTOCOL);
2508-
return URLFun.HTTP_PROTOCOL + URLFun.PROTOCOL_BREAK + formatUrl;
2506+
if (startsWith(url, UrlFun.NO_PROTOCOL)) {
2507+
String formatUrl = removePrefix(url, UrlFun.NO_PROTOCOL);
2508+
return UrlFun.HTTP_PROTOCOL + UrlFun.PROTOCOL_BREAK + formatUrl;
25092509
}
25102510

2511-
if (!contains(url, URLFun.PROTOCOL_BREAK)) {
2512-
return URLFun.HTTP_PROTOCOL + URLFun.PROTOCOL_BREAK + url;
2511+
if (!contains(url, UrlFun.PROTOCOL_BREAK)) {
2512+
return UrlFun.HTTP_PROTOCOL + UrlFun.PROTOCOL_BREAK + url;
25132513
}
25142514

25152515
return url;

0 commit comments

Comments
 (0)