Apparently it is common for SCORM 1.2 Objective IDs to break spec and include spaces

This commit is contained in:
Jonathan Putney
2020-10-29 12:05:10 -04:00
parent e2c437d401
commit b22b607209
6 changed files with 11 additions and 11 deletions

View File

@@ -8,7 +8,7 @@ const scorm12 = {
CMIInteger: '^\\d+$',
CMISInteger: '^-?([0-9]+)$',
CMIDecimal: '^-?([0-9]{0,3})(\.[0-9]*)?$', // eslint-disable-line
CMIIdentifier: '^[\\u0021-\\u007E]{0,255}$',
CMIIdentifier: '^[\\u0021-\\u007E\\s]{0,255}$',
CMIFeedback: '^.{0,255}$', // This must be redefined
CMIIndex: '[._](\\d+).',