correct input fields for Questtype ?Textinput? when marker is at the begin or end of text
This commit is contained in:
parent
1cf1e86ff7
commit
30df424051
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,7 @@
|
|||
$task = $this->Textinput->getTextinputQuest($quest['id']);
|
||||
|
||||
// Process text
|
||||
$textParts = preg_split('/(\$\$)/', $task['text'], -1, PREG_SPLIT_NO_EMPTY);
|
||||
$textParts = preg_split('/(\$\$)/', ' '.$task['text'].' ', -1, PREG_SPLIT_NO_EMPTY);
|
||||
|
||||
// Get Character answers
|
||||
$regexs = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue