fix: fix bot url length (#504)

This commit is contained in:
Byungchul Kim 2022-08-06 10:42:32 +09:00 committed by GitHub
parent 8ea69fb4ae
commit bd6af3380b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -189,7 +189,7 @@ export const AddBotSubmitSchema: Yup.SchemaOf<AddBotSubmit> = Yup.object({
url: Yup.string() url: Yup.string()
.matches(HTTPProtocol, 'http:// 또는 https:// 로 시작해야합니다.') .matches(HTTPProtocol, 'http:// 또는 https:// 로 시작해야합니다.')
.matches(Url, '올바른 초대링크 URL을 입력해주세요.') .matches(Url, '올바른 초대링크 URL을 입력해주세요.')
.max(128, 'URL은 최대 128자까지만 가능합니다.') .max(612, 'URL은 최대 612자까지만 가능합니다.')
.nullable(), .nullable(),
git: Yup.string() git: Yup.string()
.matches(HTTPProtocol, 'http:// 또는 https:// 로 시작해야합니다.') .matches(HTTPProtocol, 'http:// 또는 https:// 로 시작해야합니다.')
@ -314,7 +314,7 @@ export const ManageBotSchema: Yup.SchemaOf<ManageBot> = Yup.object({
url: Yup.string() url: Yup.string()
.matches(HTTPProtocol, 'http:// 또는 https:// 로 시작해야합니다.') .matches(HTTPProtocol, 'http:// 또는 https:// 로 시작해야합니다.')
.matches(Url, '올바른 초대링크 URL을 입력해주세요.') .matches(Url, '올바른 초대링크 URL을 입력해주세요.')
.max(128, 'URL은 최대 128자까지만 가능합니다.') .max(612, 'URL은 최대 612자까지만 가능합니다.')
.nullable(), .nullable(),
git: Yup.string() git: Yup.string()
.matches(HTTPProtocol, 'http:// 또는 https:// 로 시작해야합니다.') .matches(HTTPProtocol, 'http:// 또는 https:// 로 시작해야합니다.')