Przeglądaj źródła

handle regex for invalid characters

Alexander Belanger 5 lat temu
rodzic
commit
9221dbbea4

+ 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",
       });