diff --git a/ui/src/components/Modal/index.tsx b/ui/src/components/Modal/index.tsx index cdc8d3176..a2c0aa628 100644 --- a/ui/src/components/Modal/index.tsx +++ b/ui/src/components/Modal/index.tsx @@ -58,7 +58,7 @@ const Modal = (props: ProjectModalProps) => { if (!value) { setInputValue(false); return; - } else if (!/^[^\s].+$/.test(value)) { + } else if (!/^[^\s].*$/.test(value)) { setInputValue(false); return 'Please enter project name.'; } else if (value && value?.length > 200) {