mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-05 05:52:43 +08:00
同步更新代码
This commit is contained in:
parent
1ad7dc1f56
commit
784affead0
@ -30,10 +30,10 @@ define(function () {
|
|||||||
this.patterns = {
|
this.patterns = {
|
||||||
qq: '^[1-9][0-9]{4,11}$',
|
qq: '^[1-9][0-9]{4,11}$',
|
||||||
ip: '^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$',
|
ip: '^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$',
|
||||||
url: '^https?://([a-zA-Z0-9]+\\.)+[a-zA-Z0-9]+',
|
url: '^https?://([a-zA-Z0-9-]+\\.)+[-_a-zA-Z0-9-]+',
|
||||||
phone: '^1[3-9][0-9]{9}$',
|
phone: '^1[3-9][0-9]{9}$',
|
||||||
mobile: '^1[3-9][0-9]{9}$',
|
mobile: '^1[3-9][0-9]{9}$',
|
||||||
email: '^([a-zA-Z0-9_\\.\\-])+@(([a-zA-Z0-9\-])+\\.)+([a-zA-Z0-9]{2,4})+$',
|
email: '^([a-zA-Z0-9_\\.-])+@(([a-zA-Z0-9-])+\\.)+([a-zA-Z0-9]{2,4})+$',
|
||||||
wechat: '^[a-zA-Z]([-_a-zA-Z0-9]{5,19})+$',
|
wechat: '^[a-zA-Z]([-_a-zA-Z0-9]{5,19})+$',
|
||||||
cardid: '^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$',
|
cardid: '^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$',
|
||||||
userame: '^[a-zA-Z0-9_-]{4,16}$',
|
userame: '^[a-zA-Z0-9_-]{4,16}$',
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user