Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
head_group
xyqb-user2
Commits
79c3acf0
Commit
79c3acf0
authored
May 05, 2019
by
技术部-任文超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整日志参数顺序
parent
8fcb2ed3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
ValidationUtil.java
src/main/java/cn/quantgroup/xyqb/util/ValidationUtil.java
+1
-1
TestValidationUtil.java
src/test/java/common/TestValidationUtil.java
+3
-1
No files found.
src/main/java/cn/quantgroup/xyqb/util/ValidationUtil.java
View file @
79c3acf0
...
@@ -66,7 +66,7 @@ public class ValidationUtil {
...
@@ -66,7 +66,7 @@ public class ValidationUtil {
for
(
int
i
=
0
;
i
<
chinese
.
length
();
i
++)
{
for
(
int
i
=
0
;
i
<
chinese
.
length
();
i
++)
{
uniCodeTemp
.
append
(
"\\u"
).
append
(
Integer
.
toHexString
((
int
)
chinese
.
charAt
(
i
)));
uniCodeTemp
.
append
(
"\\u"
).
append
(
Integer
.
toHexString
((
int
)
chinese
.
charAt
(
i
)));
}
}
log
.
info
(
"[ValidationUtil][validateChinese]:[chinese][
unicode][length
]:[{}][{}][{}]"
,
chinese
,
chinese
.
length
(),
uniCodeTemp
);
log
.
info
(
"[ValidationUtil][validateChinese]:[chinese][
length][unicode
]:[{}][{}][{}]"
,
chinese
,
chinese
.
length
(),
uniCodeTemp
);
}
}
// 兼容扩展字集合
// 兼容扩展字集合
valid
=
valid
||
chineseExtendPattern
.
matcher
(
chinese
).
find
();
valid
=
valid
||
chineseExtendPattern
.
matcher
(
chinese
).
find
();
...
...
src/test/java/common/TestValidationUtil.java
View file @
79c3acf0
...
@@ -22,7 +22,9 @@ public class TestValidationUtil {
...
@@ -22,7 +22,9 @@ public class TestValidationUtil {
{
"17393151197"
,
"高晓辉.买买提"
},
{
"17393151197"
,
"高晓辉.买买提"
},
{
"17393151197"
,
"高晓辉·喀秋莎.买买提"
},
{
"17393151197"
,
"高晓辉·喀秋莎.买买提"
},
{
"17393151197"
,
"高晓辉·喀秋莎"
},
{
"17393151197"
,
"高晓辉·喀秋莎"
},
{
"18721920553"
,
"王正\u202D"
}};
{
"18721920553"
,
"王正\u202D"
},
{
"15242331122"
,
"\u200D刘玥盈"
}
};
for
(
String
[]
ctc
:
contacts
)
{
for
(
String
[]
ctc
:
contacts
)
{
log
.
info
(
"phoneNo:[{}][{}],name:[{}][{}],name-trim:[{}][{}]"
,
log
.
info
(
"phoneNo:[{}][{}],name:[{}][{}],name-trim:[{}][{}]"
,
ctc
[
0
],
ValidationUtil
.
validatePhoneNo
(
ctc
[
0
]),
ctc
[
0
],
ValidationUtil
.
validatePhoneNo
(
ctc
[
0
]),
...
...
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