@@ -2,7 +2,7 @@ import * as Yup from 'yup'
22import YupKorean from 'yup-locales-ko'
33import { ListType } from '@types'
44import { botCategories , library , reportCats , serverCategories } from '@utils/Constants'
5- import { HTTPProtocol , ID , Prefix , Url , Vanity } from '@utils/Regex'
5+ import { HTTPProtocol , ID , Prefix , reservedVanity , Url , Vanity } from '@utils/Regex'
66
77Yup . setLocale ( YupKorean )
88Yup . addMethod ( Yup . array , 'unique' , function ( message , mapper = ( a ) => a ) {
@@ -296,10 +296,11 @@ export const ManageBotSchema: Yup.SchemaOf<ManageBot> = Yup.object({
296296 . min ( 100 , '봇 설명은 최소 100자여야합니다.' )
297297 . max ( 1500 , '봇 설명은 최대 1500자여야합니다.' )
298298 . required ( '봇 설명은 필수 항목입니다.' ) ,
299- vanity : Yup . string ( )
299+ vanity : Yup . string ( )
300300 . min ( 3 , '커스텀 URL은 최소 3자여야합니다.' )
301301 . max ( 32 , '커스텀 URL은 최대 32자여야합니다.' )
302302 . matches ( Vanity , '커스텀 URL은 영문만 포함할 수 있습니다.' )
303+ . matches ( reservedVanity , '사용할 수 없는 커스텀 URL입니다.' )
303304 . nullable ( ) ,
304305 banner : Yup . string ( )
305306 . matches ( HTTPProtocol , 'http:// 또는 https:// 로 시작해야합니다.' )
0 commit comments