Allowing empty comments in SCORM 1.2

This commit is contained in:
Jonathan Putney
2020-10-29 11:45:40 -04:00
parent 95ad2dd904
commit dc6292e0db
5 changed files with 10 additions and 10 deletions

8
dist/scorm-again.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
{ {
"name": "scorm-again", "name": "scorm-again",
"version": "1.4.3", "version": "1.4.4",
"description": "A modern SCORM JavaScript run-time library for AICC, SCORM 1.2, and SCORM 2004", "description": "A modern SCORM JavaScript run-time library for AICC, SCORM 1.2, and SCORM 2004",
"main": "dist/scorm-again.min.js", "main": "dist/scorm-again.min.js",
"directories": { "directories": {

View File

@@ -226,7 +226,7 @@ export class CMI extends BaseCMI {
* @param {string} comments * @param {string} comments
*/ */
set comments(comments) { set comments(comments) {
if (check12ValidFormat(comments, scorm12_regex.CMIString4096)) { if (check12ValidFormat(comments, scorm12_regex.CMIString4096, true)) {
this.#comments = comments; this.#comments = comments;
} }
} }