Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
田翔
xform
Commits
2ab288bb
Commit
2ab288bb
authored
Mar 07, 2023
by
田翔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 手机号正则校验
parent
4fec8167
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
settings.js
src/core/FormDesigner/config/settings.js
+0
-1
index.js
...ore/widgets/settings/groupVerify/VerifyTextInput/index.js
+3
-3
No files found.
src/core/FormDesigner/config/settings.js
View file @
2ab288bb
...
...
@@ -63,7 +63,6 @@ const textWidgets = [
type
:
'string'
,
widget
:
'TextInput'
,
placeholder
:
'请输入内容'
},
setting
:
{
widget
:
{
...
...
src/core/widgets/settings/groupVerify/VerifyTextInput/index.js
View file @
2ab288bb
...
...
@@ -6,13 +6,13 @@ const options = [
name
:
'email'
,
label
:
'邮箱(email)'
,
value
:
'^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(.[a-zA-Z0-9_-]+)+$'
,
message
:
'邮箱校验未通过'
message
:
'邮箱校验未通过'
,
},
{
name
:
'identity'
,
label
:
'身份证号(identity)'
,
value
:
'(^
\\
d{15}$)|(^
\\
d{18}$)|(^
\\
d{17}(
\\
d|X|x)$)'
,
message
:
'
手机号校验未通过'
message
:
'
身份证号校验未通过'
,
},
{
name
:
'mobile'
,
...
...
@@ -24,7 +24,7 @@ const options = [
name
:
'bankAccount'
,
label
:
'银行卡号(bankAccount)'
,
value
:
'^(
\\
d{16}|
\\
d{19})$'
,
message
:
'银行卡号校验未通过'
message
:
'银行卡号校验未通过'
,
},
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment