Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-41695 SCORM: allow unlimited decimal places in CMIDecimal

  • Loading branch information...
commit 0b0e98d794a9e010fc1c3c70a85375898f850b12 1 parent 9f887be
@danmarsden danmarsden authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/scorm/datamodels/scorm_12.js.php
View
4 mod/scorm/datamodels/scorm_12.js.php
@@ -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';
Please sign in to comment.
Something went wrong with that request. Please try again.