projects
/
arvados-workbench2.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20063f6
)
17691: Relax ssh key frontend validation to accept keys without comment
author
Stephen Smith <stephen@curii.com>
Mon, 2 Aug 2021 13:35:17 +0000
(09:35 -0400)
committer
Stephen Smith <stephen@curii.com>
Mon, 2 Aug 2021 17:06:15 +0000
(13:06 -0400)
Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen@curii.com>
src/validators/is-rsa-key.tsx
patch
|
blob
|
history
diff --git
a/src/validators/is-rsa-key.tsx
b/src/validators/is-rsa-key.tsx
index 7620a801d4a8abedbcf8aba51f1e4c2a822e3b93..d41b092906a2e34d6cb53fe7d6334a1ffefc092d 100644
(file)
--- 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;
};