Legacy submit and compares were being approximated by torus text input questions in which every answer was correct, but this allows blank submissions to get the answer feedback to compare. In response to requests from LEs, this adjusts the torus output for a legacy submit and compare question to use a regular expression rule to ensure that blank submission is not accepted as correct. With this adjustment, blank submissions will get incorrect (red) colored feedback "Please enter a response".
The regex .+ works for detecting non-blank answers because torus trims whitespace before evaluating. This crude method still allows a nonsensical or one-character entry. But at least prompts students not to simply hit "submit" on an empty text box and more closely matches legacy submit and compare behavior.
Legacy submit and compares were being approximated by torus text input questions in which every answer was correct, but this allows blank submissions to get the answer feedback to compare. In response to requests from LEs, this adjusts the torus output for a legacy submit and compare question to use a regular expression rule to ensure that blank submission is not accepted as correct. With this adjustment, blank submissions will get incorrect (red) colored feedback "Please enter a response".
The regex .+ works for detecting non-blank answers because torus trims whitespace before evaluating. This crude method still allows a nonsensical or one-character entry. But at least prompts students not to simply hit "submit" on an empty text box and more closely matches legacy submit and compare behavior.