Permalink
Browse files

added support to hyphen and tilde in CMIIdentifier

  • Loading branch information...
1 parent 3e3c6ee commit 6a973240afb22f24b06dec750577955ac8a8bd5f bobopinna committed Sep 12, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/scorm/datamodels/scorm1_2.js.php
@@ -24,7 +24,7 @@ function SCORMapi1_2() {
CMIInteger = '^\\d+$';
CMISInteger = '^-?([0-9]+)$';
CMIDecimal = '^-?([0-9]{0,3})(\.[0-9]{1,2})?$';
- CMIIdentifier = '^\\w{1,255}$';
+ CMIIdentifier = '^\\w[\\w|\-|\~]{1,255}$';
CMIFeedback = CMIString256; // This must be redefined
CMIIndex = '[._](\\d+).';
// Vocabulary Data Type Definition

0 comments on commit 6a97324

Please sign in to comment.