mirror of
https://github.com/moodle/moodle.git
synced 2025-03-18 14:40:06 +01:00
Added simplified aliases for answer types, as proposed by Thomas Robb. It is now possible to use these aliases:
SHORTANSWER = SA = MW ; NUMERICAL = NM ; MULTICHOICE = MC
This commit is contained in:
parent
565e970ee2
commit
b63519ebda
@ -46,7 +46,7 @@ define("NUMERICAL_ABS_ERROR_MARGIN", 6);
|
||||
|
||||
// Remaining ANSWER regexes
|
||||
define("ANSWER_TYPE_DEF_REGEX",
|
||||
'(NUMERICAL)|(MULTICHOICE)|(SHORTANSWER)');
|
||||
'(NUMERICAL|NM)|(MULTICHOICE|MC)|(SHORTANSWER|SA|MW)');
|
||||
define("ANSWER_START_REGEX",
|
||||
'\{([0-9]*):(' . ANSWER_TYPE_DEF_REGEX . '):');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user