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:
@@ -38,7 +38,7 @@ const UserEmailSettings: React.FC = () => {
|
||||
pgpKey: Yup.string()
|
||||
.nullable()
|
||||
.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)
|
||||
),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user