function check_string(nickname) {
var reg = /^[A-Za-z0-9-_\u4e00-\u9fa5]{4,30}$/;
if (!reg.test(nickname)) {
return false;
}
return true;
}
时间: 2025-01-06 01:06:28
function check_string(nickname) {
var reg = /^[A-Za-z0-9-_\u4e00-\u9fa5]{4,30}$/;
if (!reg.test(nickname)) {
return false;
}
return true;
}