Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
witiumCloud2
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
WitCloud
witiumCloud2
Commits
35944dd5
Commit
35944dd5
authored
Dec 13, 2024
by
胥静
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【通道名称】和【通道别名】支持下划线输入-
parent
96e88d2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
check.ts
src/app/service/check.ts
+2
-2
No files found.
src/app/service/check.ts
View file @
35944dd5
...
@@ -232,11 +232,11 @@ export class CheckService {
...
@@ -232,11 +232,11 @@ export class CheckService {
this
.
flag
=
1
;
this
.
flag
=
1
;
return
false
return
false
}
}
const
reg
=
new
RegExp
(
eng
===
"alias"
||
eng
===
"name"
?
'
^[a-zA-Z0-9_]*$'
:
'^[a-zA-Z0-9
]*$'
);
const
reg
=
new
RegExp
(
eng
===
"alias"
||
eng
===
"name"
?
'
[a-zA-Z0-9_-]*$'
:
'[a-zA-Z0-9-
]*$'
);
if
(
reg
.
test
(
data
[
eng
]))
{
if
(
reg
.
test
(
data
[
eng
]))
{
return
true
;
return
true
;
}
else
{
}
else
{
this
.
message
.
warning
(
this
.
translate
.
instant
(
this
.
trans
[
eng
])
+
'格式填写错误, 应填入英文
或数字
'
);
this
.
message
.
warning
(
this
.
translate
.
instant
(
this
.
trans
[
eng
])
+
'格式填写错误, 应填入英文
、数字、"-" 或 "_"
'
);
this
.
flag
=
1
;
this
.
flag
=
1
;
return
false
;
return
false
;
}
}
...
...
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