I want to run a sentence completion experiment where participants are presented with a partial sentence and their task is to re-type the prompt and complete the sentence. Before allowing participants to continue to the next prompt, I want to check that they have typed out the prompt correctly along with at least one other word. Right now I have something like the code below and it does not let me progress. If I replace the regex with ” ” , then it does let me progress when I repeat the prompt and insert a space after. Similarly if I have just the regex, it lets me progress as long as I type a single word. Could you please point out what I am doing wrong? Thank you!
newVar("RT_prime").global().set( v_prime => Date.now())
newButton("continue", "Next prompt")
.wait( getTextInput("response").test.text(row.prime+/\w+/) )