Browse Source

Merge pull request 'fix issue #593' (#616) from fix-472 into V20211101

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/616
pull/622/head
A00老虎 3 years ago
parent
commit
bd0342452c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      templates/repo/modelarts/new.tmpl

+ 2
- 2
templates/repo/modelarts/new.tmpl View File

@@ -179,11 +179,11 @@
let value_task = $("input[name='job_name']").val()
let re = /^[a-z0-9][a-z0-9-_]{1,35}$/
let re = /^[a-z0-9][a-z0-9-_]{1,34}[a-z0-9-]$/
let flag = re.test(value_task)
if(!flag){
$('#messageInfo').css('display','block')
let str = '只能以小写字母或数字开头且只包含小写字母、数字、_和-最长36个字符。'
let str = '只能以小写字母或数字开头且只包含小写字母、数字、_和-,不能以_结尾,最长36个字符。'
$('#messageInfo p').text(str)
return false
}


Loading…
Cancel
Save