Skip to content

Commit

Permalink
v1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
lemos1235 committed Mar 8, 2023
1 parent 3bd6e45 commit 1d7bd75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>club.lemos</groupId>
<artifactId>jtool</artifactId>
<version>1.1.1</version>
<version>1.1.2</version>
<packaging>jar</packaging>
<name>jtool</name>

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/club/lemos/common/utils/StringUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ public static String removeSuffix(CharSequence str, CharSequence suffix) {
* @return 切割后后剩余的后半部分字符串
*/
public static String subSuf(CharSequence string, int fromIndex) {
if (hasLength(string)) {
return null;
if (!hasLength(string)) {
return "";
}
return sub(string, fromIndex, string.length());
}
Expand Down

0 comments on commit 1d7bd75

Please sign in to comment.