Merge branch 'master' of https://github.com/jcputney/scorm-again
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -462,7 +462,7 @@ class CMICore extends BaseCMI {
|
||||
* @param {string} exit
|
||||
*/
|
||||
set exit(exit) {
|
||||
if (check12ValidFormat(exit, regex.CMIExit)) {
|
||||
if (check12ValidFormat(exit, regex.CMIExit, true)) {
|
||||
this.#exit = exit;
|
||||
}
|
||||
}
|
||||
@@ -494,7 +494,7 @@ class CMICore extends BaseCMI {
|
||||
return Utilities.addHHMMSSTimeStrings(
|
||||
this.#total_time,
|
||||
this.#session_time,
|
||||
new RegExp(scorm12_regex.CMITimespan)
|
||||
new RegExp(scorm12_regex.CMITimespan),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -512,7 +512,6 @@ class CMICore extends BaseCMI {
|
||||
* lesson_location: string,
|
||||
* lesson_status: string,
|
||||
* credit: string,
|
||||
* total_time: string,
|
||||
* session_time: *
|
||||
* }
|
||||
* }
|
||||
@@ -526,7 +525,6 @@ class CMICore extends BaseCMI {
|
||||
'credit': this.credit,
|
||||
'lesson_status': this.lesson_status,
|
||||
'entry': this.entry,
|
||||
'total_time': this.getCurrentTotalTime(),
|
||||
'lesson_mode': this.lesson_mode,
|
||||
'exit': this.exit,
|
||||
'session_time': this.session_time,
|
||||
|
||||
@@ -235,7 +235,7 @@ export class CMI extends BaseCMI {
|
||||
* @param {string} exit
|
||||
*/
|
||||
set exit(exit) {
|
||||
if (check2004ValidFormat(exit, regex.CMIExit)) {
|
||||
if (check2004ValidFormat(exit, regex.CMIExit, true)) {
|
||||
this.#exit = exit;
|
||||
}
|
||||
}
|
||||
@@ -507,8 +507,7 @@ export class CMI extends BaseCMI {
|
||||
* session_time: string,
|
||||
* success_status: string,
|
||||
* suspend_data: string,
|
||||
* time_limit_action: string,
|
||||
* total_time: string
|
||||
* time_limit_action: string
|
||||
* }
|
||||
* }
|
||||
*/
|
||||
@@ -538,7 +537,6 @@ export class CMI extends BaseCMI {
|
||||
'success_status': this.success_status,
|
||||
'suspend_data': this.suspend_data,
|
||||
'time_limit_action': this.time_limit_action,
|
||||
'total_time': this.getCurrentTotalTime(),
|
||||
};
|
||||
delete this.jsonString;
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user