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:
Jabster28
2021-05-11 02:58:27 +01:00
committed by GitHub
parent 361ea77588
commit d0703aa377
2 changed files with 2 additions and 2 deletions

View File

@@ -108,7 +108,7 @@ const NotificationsEmail: React.FC = () => {
otherwise: Yup.string().nullable(),
})
.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)
),
pgpPassword: Yup.string().when('pgpPrivateKey', {