mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-41695 SCORM: allow unlimited decimal places in CMIDecimal
This commit is contained in:
parent
b58bc15af5
commit
0d7eb69164
@ -42,7 +42,7 @@ function SCORMapi1_2() {
|
||||
CMITimespan = '^([0-9]{2,4}):([0-9]{2}):([0-9]{2})(\.[0-9]{1,2})?$';
|
||||
CMIInteger = '^\\d+$';
|
||||
CMISInteger = '^-?([0-9]+)$';
|
||||
CMIDecimal = '^-?([0-9]{0,3})(\.[0-9]{1,2})?$';
|
||||
CMIDecimal = '^-?([0-9]{0,3})(\.[0-9]*)?$';
|
||||
CMIIdentifier = '^[\\u0021-\\u007E]{0,255}$';
|
||||
CMIFeedback = CMIString256; // This must be redefined
|
||||
CMIIndex = '[._](\\d+).';
|
||||
@ -51,7 +51,7 @@ function SCORMapi1_2() {
|
||||
CMIStatus2 = '^passed$|^completed$|^failed$|^incomplete$|^browsed$|^not attempted$';
|
||||
CMIExit = '^time-out$|^suspend$|^logout$|^$';
|
||||
CMIType = '^true-false$|^choice$|^fill-in$|^matching$|^performance$|^sequencing$|^likert$|^numeric$';
|
||||
CMIResult = '^correct$|^wrong$|^unanticipated$|^neutral$|^([0-9]{0,3})?(\.[0-9]{1,2})?$';
|
||||
CMIResult = '^correct$|^wrong$|^unanticipated$|^neutral$|^([0-9]{0,3})?(\.[0-9]*)?$';
|
||||
NAVEvent = '^previous$|^continue$';
|
||||
// Children lists
|
||||
cmi_children = 'core,suspend_data,launch_data,comments,objectives,student_data,student_preference,interactions';
|
||||
|
Loading…
x
Reference in New Issue
Block a user