Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
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
何洋
jinfa-platform
Commits
09a17f9c
Commit
09a17f9c
authored
Mar 24, 2022
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改手机验证
parent
0767c896
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
utils.tsx
...ges/accountSetting/components/EditDataComponent/utils.tsx
+6
-5
No files found.
src/pages/accountSetting/components/EditDataComponent/utils.tsx
View file @
09a17f9c
const
phoneRegExp
=
{
'86'
:
/^
1
[
345789
]
\
d
{
9
}
$
/
,
// 内地
'852'
:
/^
(
5
|
6
|
8
|
9
)
\\
d
{
7
}
$
/
,
// 香港
'81'
:
/
0
?[
789
](?:
\
d
{
8
}
|
\
d
{
9
})
$
/
,
// 日本
'1'
:
/
[
2-9
]\d{2}[
2-9
](?!
11
)\d{6}
$/
,
// 美国
'33'
:
/
[
67
]
\
d
{
8
}
$
/
,
//'法国'
'
+
86'
:
/^
1
[
345789
]
\
d
{
9
}
$
/
,
// 内地
'
+
852'
:
/^
(
5
|
6
|
8
|
9
)
\\
d
{
7
}
$
/
,
// 香港
'
+
81'
:
/
0
?[
789
](?:
\
d
{
8
}
|
\
d
{
9
})
$
/
,
// 日本
'
+
1'
:
/
[
2-9
]\d{2}[
2-9
](?!
11
)\d{6}
$/
,
// 美国
'
+
33'
:
/
[
67
]
\
d
{
8
}
$
/
,
//'法国'
}
export
default
phoneRegExp
;
\ No newline at end of file
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