Fix regex
This commit is contained in:
@@ -127,7 +127,7 @@ class IntentDetails extends Component {
|
||||
if (e.length === INTENT_NAME_MAX_LENGTH) return;
|
||||
let newIntent = this.state.intent;
|
||||
//Allow question name with only letters, and with one character minimum
|
||||
if (/^[a-z]+$/i.test(e)){
|
||||
if (/^[a-z]*$/i.test(e)){
|
||||
newIntent.intentName = e;
|
||||
}
|
||||
this.setState({intent: newIntent});
|
||||
|
||||
Reference in New Issue
Block a user