Allowing cmi.core.lesson_location to contain empty string

This commit is contained in:
Jonathan Putney
2019-12-20 14:35:24 -05:00
parent fa5f60401c
commit b4d598eed0
2 changed files with 3714 additions and 2921 deletions

6633
dist/scorm-again.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -362,7 +362,7 @@ class CMICore extends BaseCMI {
* @param {string} lesson_location
*/
set lesson_location(lesson_location) {
if (check12ValidFormat(lesson_location, regex.CMIString256)) {
if (check12ValidFormat(lesson_location, regex.CMIString256, true)) {
this.#lesson_location = lesson_location;
}
}