SCORM MDL-24579 fix CMILongIdentifier regex (SCORM 2004) - thanks to Peter Chamberlai...
authorDan Marsden <Dan@digitalclay.co.nz>
Wed, 10 Nov 2010 21:37:47 +0000 (21:37 +0000)
committerDan Marsden <Dan@digitalclay.co.nz>
Wed, 10 Nov 2010 21:37:47 +0000 (21:37 +0000)
mod/scorm/datamodels/scorm_13.js.php

index e62853b..26628ea 100644 (file)
@@ -77,7 +77,7 @@ function SCORMapi1_3() {
     var CMIDecimal = '^-?([0-9]{1,5})(\\.[0-9]{1,18})?$';
     var CMIIdentifier = '^\\S{0,250}[a-zA-Z0-9]$';
     var CMIShortIdentifier = '^[\\w\.]{1,250}$';
-    var CMILongIdentifier = '^\\S{0,4000}[a-zA-Z0-9]$';
+    var CMILongIdentifier = '^\\S{0,4000}$';
     var CMIFeedback = '^.*$'; // This must be redefined
     var CMIIndex = '[._](\\d+).';
     var CMIIndexStore = '.N(\\d+).';