Fixing an issue with double digit interaction counts

This commit is contained in:
Jonathan Putney
2020-06-26 12:07:06 -04:00
parent 8f2db32e27
commit 9847b0f1eb
6 changed files with 29 additions and 15 deletions

View File

@@ -531,7 +531,7 @@ export default class BaseAPI {
} else if (!this._checkObjectHasProperty(refObject, attribute)) {
this.throwSCORMError(invalidErrorCode, invalidErrorMessage);
} else {
if (this.stringMatches(CMIElement, '\\.correct_responses\\.\\d')) {
if (this.stringMatches(CMIElement, '\\.correct_responses\\.\\d+')) {
this.validateCorrectResponse(CMIElement, value);
}