File tree 7 files changed +13
-7
lines changed
7 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " pakeplus" ,
3
3
"private" : true ,
4
- "version" : " 0.5.2 " ,
4
+ "version" : " 0.5.3 " ,
5
5
"type" : " module" ,
6
6
"scripts" : {
7
7
"dev" : " vite" ,
Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ export default {
31
31
urlInvalid : 'The url must start with http' ,
32
32
example : 'example' ,
33
33
appName : 'AppName' ,
34
- appNameInvalid : 'The app name cannot start with a digit' ,
34
+ appNameInvalid :
35
+ 'The app name can only contain letters, numbers and underscores.' ,
35
36
appId : 'Identifier' ,
36
37
appIdInvalid : 'The appid must be alphanumeric and dot' ,
37
38
appIcon : 'AppIcon' ,
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export default {
33
33
urlInvalid : 'urlはhttpで始まる必要があります' ,
34
34
example : '例' ,
35
35
appName : 'アプリ名' ,
36
- appNameInvalid : 'アプリ名は数字で始めることはできません ' ,
36
+ appNameInvalid : 'アプリ名は英数字と_で構成されている必要があります ' ,
37
37
appId : 'アプリID' ,
38
38
appIdInvalid : 'アプリIDは英数字と.で構成されている必要があります' ,
39
39
appIcon : 'アプリアイコン' ,
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export default {
32
32
urlInvalid : 'url은 http로 시작해야 합니다' ,
33
33
example : '예' ,
34
34
appName : '앱 이름' ,
35
- appNameInvalid : '앱 이름은 숫자로 시작할 수 없습니다 ' ,
35
+ appNameInvalid : '앱 이름은 영어 숫자와 _로만 구성되어야 합니다 ' ,
36
36
appId : '앱 ID' ,
37
37
appIdInvalid : '앱 ID는 영어 숫자와 .로 구성되어야 합니다' ,
38
38
appIcon : '앱 아이콘' ,
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export default {
30
30
urlInvalid : 'url必须以http开头' ,
31
31
example : '例如' ,
32
32
appName : 'APP名称' ,
33
- appNameInvalid : 'APP名称不能以数字开头 ' ,
33
+ appNameInvalid : 'APP名称只能包含字母、数字和下划线 ' ,
34
34
appId : 'APP标识' ,
35
35
appIdInvalid : 'appid必须为字母、数字和.组成' ,
36
36
appIcon : 'APP图标' ,
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export default {
30
30
urlInvalid : 'url必須以http開頭' ,
31
31
example : '例如' ,
32
32
appName : 'APP名稱' ,
33
- appNameInvalid : 'APP名稱不能以數字開頭 ' ,
33
+ appNameInvalid : 'APP名稱只能包含字母、數字和下劃線 ' ,
34
34
appId : 'APP標識' ,
35
35
appIdInvalid : 'appid必須為字母、數字和.組成' ,
36
36
appIcon : 'APP圖標' ,
Original file line number Diff line number Diff line change @@ -412,7 +412,12 @@ const appRules = reactive<FormRules>({
412
412
// console.log('appshow name value', value)
413
413
// the name cannot start with a digit
414
414
// the name cannot contain special characters
415
- if (/ ^ [0-9 ] / .test (value ) || value .includes (' ' )) {
415
+ // the name cannot include chinese characters
416
+ if (
417
+ / ^ [0-9 ] / .test (value ) ||
418
+ value .includes (' ' ) ||
419
+ / [\u4e00 -\u9fa5 ] / .test (value )
420
+ ) {
416
421
callback (new Error (t (' appNameInvalid' )))
417
422
} else {
418
423
callback ()
You can’t perform that action at this time.
0 commit comments