[ARVADOS-WORKBENCH2] created: 2.2.1-36-g065273b6
Git user
git at public.arvados.org
Mon Aug 2 13:36:37 UTC 2021
at 065273b6a85d33939edad2b25efaf7028610e1e4 (commit)
commit 065273b6a85d33939edad2b25efaf7028610e1e4
Author: Stephen Smith <stephen at curii.com>
Date: Mon Aug 2 09:35:17 2021 -0400
17681: 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