mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
# 5.7.17 (2021-11-11)
|
# 5.7.17 (2021-11-14)
|
||||||
|
|
||||||
### 🐣新特性
|
### 🐣新特性
|
||||||
* 【core 】 增加AsyncUtil(pr#457@Gitee)
|
* 【core 】 增加AsyncUtil(pr#457@Gitee)
|
||||||
@@ -12,6 +12,7 @@
|
|||||||
* 【cron 】 TaskTable.remove增加返回值(issue#I4HX3B@Gitee)
|
* 【cron 】 TaskTable.remove增加返回值(issue#I4HX3B@Gitee)
|
||||||
* 【core 】 Tree增加filter、filterNew、cloneTree、hasChild方法(issue#I4HFC6@Gitee)
|
* 【core 】 Tree增加filter、filterNew、cloneTree、hasChild方法(issue#I4HFC6@Gitee)
|
||||||
* 【poi 】 增加ColumnSheetReader及ExcelReader.readColumn,支持读取某一列
|
* 【poi 】 增加ColumnSheetReader及ExcelReader.readColumn,支持读取某一列
|
||||||
|
* 【core 】 IdCardUtil.isValidCard不再自动trim(issue#I4I04O@Gitee)
|
||||||
### 🐞Bug修复
|
### 🐞Bug修复
|
||||||
* 【core 】 修复FileResource构造fileName参数无效问题(issue#1942@Github)
|
* 【core 】 修复FileResource构造fileName参数无效问题(issue#1942@Github)
|
||||||
|
|
||||||
|
@@ -147,7 +147,8 @@ public class IdcardUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否有效身份证号,忽略X的大小写
|
* 是否有效身份证号,忽略X的大小写<br>
|
||||||
|
* 如果身份证号码中含有空格始终返回{@code false}
|
||||||
*
|
*
|
||||||
* @param idCard 身份证号,支持18位、15位和港澳台的10位
|
* @param idCard 身份证号,支持18位、15位和港澳台的10位
|
||||||
* @return 是否有效
|
* @return 是否有效
|
||||||
@@ -157,7 +158,7 @@ public class IdcardUtil {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
idCard = idCard.trim();
|
//idCard = idCard.trim();
|
||||||
int length = idCard.length();
|
int length = idCard.length();
|
||||||
switch (length) {
|
switch (length) {
|
||||||
case 18:// 18位身份证
|
case 18:// 18位身份证
|
||||||
|
Reference in New Issue
Block a user