mirror of
https://github.com/moodle/moodle.git
synced 2025-02-15 13:24:56 +01:00
MDL-30578, Updating CMILongIdentifer to check for valid URI (RFC 3986 [6]) and URN syntax as per RFC 2141 [3]
This commit is contained in:
parent
60e99097e4
commit
c9e7d6eb81
@ -90,9 +90,9 @@ function SCORMapi1_3() {
|
||||
var CMIInteger = '^\\d+$';
|
||||
var CMISInteger = '^-?([0-9]+)$';
|
||||
var CMIDecimal = '^-?([0-9]{1,5})(\\.[0-9]{1,18})?$';
|
||||
var CMIIdentifier = '^\\S{0,250}[a-zA-Z0-9]$';
|
||||
var CMIIdentifier = '^\\S{1,250}[a-zA-Z0-9]$';
|
||||
var CMIShortIdentifier = '^[\\w\.]{1,250}$';
|
||||
var CMILongIdentifier = '^\\S{0,4000}$';
|
||||
var CMILongIdentifier = '^(?:(?!urn:)\\S{1,4000}|urn:[a-z0-9][-a-z-0-9]{1,31}:\\S{1,4000})$';
|
||||
var CMIFeedback = '^.*$'; // This must be redefined
|
||||
var CMIIndex = '[._](\\d+).';
|
||||
var CMIIndexStore = '.N(\\d+).';
|
||||
|
Loading…
x
Reference in New Issue
Block a user