correct input fields for Questtype ?Textinput? when marker is at the begin or end of text

This commit is contained in:
coderkun 2014-03-22 22:32:43 +01:00
commit 30df424051

View file

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