From e5905528facce324ff31dcaaae8e0740d97f8ce2 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Sat, 10 Jul 2010 08:17:13 +0000 Subject: [PATCH] SCORM MDL-23119 allowing extra characters in CMIIdentifier - this is outside the ADL Spec but it seems to be ok to extend this and allow more characters than is specified by ADL --- mod/scorm/datamodels/scorm_12.js.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/scorm/datamodels/scorm_12.js.php b/mod/scorm/datamodels/scorm_12.js.php index a50bf164b69..2fa65054dd5 100644 --- a/mod/scorm/datamodels/scorm_12.js.php +++ b/mod/scorm/datamodels/scorm_12.js.php @@ -25,7 +25,7 @@ function SCORMapi1_2() { CMIInteger = '^\\d+$'; CMISInteger = '^-?([0-9]+)$'; CMIDecimal = '^-?([0-9]{0,3})(\.[0-9]{1,2})?$'; - CMIIdentifier = '^\\w{1,255}$'; + CMIIdentifier = '^[\\u0021-\\u007E]{0,255}$'; CMIFeedback = CMIString256; // This must be redefined CMIIndex = '[._](\\d+).'; // Vocabulary Data Type Definition