Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
26792dfb
"...git@developer.sourcefind.cn:OpenDAS/mmdetection3d.git" did not exist on "8c4c9aee4fff9dd4072f1c7e174592cc3d2a2052"
Commit
26792dfb
authored
Jun 24, 2019
by
demianzhang
Committed by
chicm-ms
Jun 24, 2019
Browse files
Fix regular expression error (#1194)
parent
f9fc3d01
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/nni_manager/common/utils.ts
src/nni_manager/common/utils.ts
+1
-1
No files found.
src/nni_manager/common/utils.ts
View file @
26792dfb
...
@@ -375,7 +375,7 @@ function countFilesRecursively(directory: string, timeoutMilliSeconds?: number):
...
@@ -375,7 +375,7 @@ function countFilesRecursively(directory: string, timeoutMilliSeconds?: number):
}
}
function
validateFileName
(
fileName
:
string
):
boolean
{
function
validateFileName
(
fileName
:
string
):
boolean
{
let
pattern
:
string
=
'
^[a-z0-9A-Z
\
.
-
_]+$
'
;
let
pattern
:
string
=
'
^[a-z0-9A-Z
\
._
-
]+$
'
;
const
validateResult
=
fileName
.
match
(
pattern
);
const
validateResult
=
fileName
.
match
(
pattern
);
if
(
validateResult
)
{
if
(
validateResult
)
{
return
true
;
return
true
;
...
...
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