projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '21128-toolbar-context-menu'
[arvados-workbench2.git]
/
src
/
validators
/
is-rsa-key.tsx
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) => {
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;
};
};