fix: switch PGP regex to span multiple lines (#1598)
* fix: switch PGP regex to span multiple lines * also change the regex in this file
This commit is contained in:
@@ -108,7 +108,7 @@ const NotificationsEmail: React.FC = () => {
|
|||||||
otherwise: Yup.string().nullable(),
|
otherwise: Yup.string().nullable(),
|
||||||
})
|
})
|
||||||
.matches(
|
.matches(
|
||||||
/^-----BEGIN PGP PRIVATE KEY BLOCK-----.+-----END PGP PRIVATE KEY BLOCK-----$/,
|
/-----BEGIN PGP PRIVATE KEY BLOCK-----.+-----END PGP PRIVATE KEY BLOCK-----/s,
|
||||||
intl.formatMessage(messages.validationPgpPrivateKey)
|
intl.formatMessage(messages.validationPgpPrivateKey)
|
||||||
),
|
),
|
||||||
pgpPassword: Yup.string().when('pgpPrivateKey', {
|
pgpPassword: Yup.string().when('pgpPrivateKey', {
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ const UserEmailSettings: React.FC = () => {
|
|||||||
pgpKey: Yup.string()
|
pgpKey: Yup.string()
|
||||||
.nullable()
|
.nullable()
|
||||||
.matches(
|
.matches(
|
||||||
/^-----BEGIN PGP PUBLIC KEY BLOCK-----.+-----END PGP PUBLIC KEY BLOCK-----$/,
|
/-----BEGIN PGP PUBLIC KEY BLOCK-----.+-----END PGP PUBLIC KEY BLOCK-----/s,
|
||||||
intl.formatMessage(messages.validationPgpPublicKey)
|
intl.formatMessage(messages.validationPgpPublicKey)
|
||||||
),
|
),
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user