Handle user input #14

Merged
senaduka merged 10 commits from handle-user-input into master 2018-02-07 11:06:37 +01:00
Showing only changes of commit 2870695b25 - Show all commits

View File

@@ -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});