mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-24 08:20:31 +08:00
Improve isValidPersonName()
This commit is contained in:
parent
3d50255060
commit
7083904634
@ -229,9 +229,11 @@ export function getSignupItem(application, itemName) {
|
||||
}
|
||||
|
||||
export function isValidPersonName(personName) {
|
||||
// https://blog.css8.cn/post/14210975.html
|
||||
const personNameRegex = /^[\u4e00-\u9fa5]{2,6}$/;
|
||||
return personNameRegex.test(personName);
|
||||
return personName !== "";
|
||||
|
||||
// // https://blog.css8.cn/post/14210975.html
|
||||
// const personNameRegex = /^[\u4e00-\u9fa5]{2,6}$/;
|
||||
// return personNameRegex.test(personName);
|
||||
}
|
||||
|
||||
export function isValidIdCard(idCard) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user