[ARVADOS-WORKBENCH2] created: 2.2.1-36-gac8fd688
Git user
git at public.arvados.org
Mon Aug 2 17:06:49 UTC 2021
at ac8fd68834fc706b76fa32df82346d4a3df9026e (commit)
commit ac8fd68834fc706b76fa32df82346d4a3df9026e
Author: Stephen Smith <stephen at curii.com>
Date: Mon Aug 2 09:35:17 2021 -0400
17691: Relax ssh key frontend validation to accept keys without comment
Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen at curii.com>
diff --git a/src/validators/is-rsa-key.tsx b/src/validators/is-rsa-key.tsx
index 7620a801..d41b0929 100644
--- a/src/validators/is-rsa-key.tsx
+++ b/src/validators/is-rsa-key.tsx
@@ -6,5 +6,5 @@
const ERROR_MESSAGE = 'Public key is invalid';
export const isRsaKey = (value: any) => {
- return value.match(/ssh-rsa AAAA[0-9A-Za-z+/]+[=]{0,3} ([^@]+@[^@]+)/i) ? undefined : ERROR_MESSAGE;
+ return value.match(/ssh-rsa AAAA[0-9A-Za-z+/]+[=]{0,3}(( [^@]+@[^@]+)|$)/i) ? undefined : ERROR_MESSAGE;
};
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list