Explorar el Código

handle regex for invalid characters

Alexander Belanger hace 5 años
padre
commit
9221dbbea4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      dashboard/src/main/home/modals/NamespaceModal.tsx

+ 1 - 1
dashboard/src/main/home/modals/NamespaceModal.tsx

@@ -35,7 +35,7 @@ export default class NamespaceModal extends Component<PropsType, StateType> {
       return;
     }
 
-    if (!this.hasInvalidCharacters(this.state.namespaceName)) {
+    if (this.hasInvalidCharacters(this.state.namespaceName)) {
       this.setState({
         status: "Only lowercase, numbers or dash (-) are allowed",
       });