Skip to content

Commit fc20f1e

Browse files
committed
1.69
1 parent 6a6bd3b commit fc20f1e

File tree

5 files changed

+20
-4
lines changed

5 files changed

+20
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package dev.felnull.fnjl;
22

33
public class FNJLBuildIn {
4-
protected static final String VERSION = "1.68";
4+
protected static final String VERSION = "1.69";
55
}

common/src/main/java/dev/felnull/fnjl/util/FNStringUtil.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,4 +329,21 @@ public static String escapeFileName(String name, String escapeStr) {
329329
public static String escapeFileName(String name) {
330330
return escapeFileName(name, "");
331331
}
332+
333+
/**
334+
* URLとパスを連結
335+
*
336+
* @param base ベースのURL
337+
* @param path パス
338+
* @return 連結済み文字列
339+
*/
340+
public static String urlConcatenation(String base, String path) {
341+
if (!base.endsWith("/"))
342+
base = base + "/";
343+
344+
if (path.startsWith("/"))
345+
path = path.substring(1);
346+
347+
return base + path;
348+
}
332349
}

common/src/test/java/dev/felnull/fnjltest/Main.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22

33
public class Main {
44
public static void main(String[] args) throws Exception {
5-
65
}
76
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
fnjl_group=dev.felnull
22
fnjl_name=felnull-java-library
3-
fnjl_version=1.68
3+
fnjl_version=1.69
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package dev.felnull.fnjln;
22

33
public class FNJLNBuildIn {
4-
protected static final String VERSION = "1.68";
4+
protected static final String VERSION = "1.69";
55

66
protected static final int NATIVE_LIBRARY_VERSION = 1;
77
}

0 commit comments

Comments
 (0)