|
|
@@ -129,8 +129,8 @@ module.exports = (crowi) => {
|
|
|
body('smtpPassword').trim(),
|
|
|
],
|
|
|
awsSetting: [
|
|
|
- body('region').trim().matches(/^[a-z]+-[a-z]+-\d+$/).withMessage('リージョンには、AWSリージョン名を入力してください。 例: ap-northeast-1'),
|
|
|
- body('customEndpoint').trim().matches(/^(https?:\/\/[^/]+|)$/).withMessage('カスタムエンドポイントは、http(s)://で始まるURLを指定してください。また、末尾の/は不要です。'),
|
|
|
+ body('region').trim().matches(/^[a-z]+-[a-z]+-\d+$/).withMessage((value, { req }) => req.t('validation.aws_region')),
|
|
|
+ body('customEndpoint').trim().matches(/^(https?:\/\/[^/]+|)$/).withMessage((value, { req }) => req.t('validation.aws_custom_endpoint')),
|
|
|
body('bucket').trim(),
|
|
|
body('accessKeyId').trim().matches(/^[\da-zA-Z]+$/),
|
|
|
body('secretAccessKey').trim(),
|