MDL-61355 SCORM: fix correct_response prefix check
commit7dcbe6a9833a6ab7a2be6f850a3adfa0fe8b9153
authorChristian Lawson-Perfect <christianperfect@gmail.com>
Mon, 5 Feb 2018 15:09:27 +0000 (5 15:09 +0000)
committerDan Marsden <dan@danmarsden.com>
Wed, 11 Jul 2018 22:44:30 +0000 (12 10:44 +1200)
tree71e9fb565a7b54c6770810af14f22c1bc4596501
parentf61ee4e857a894a5b8b69516b00be88ae499964b
MDL-61355 SCORM: fix correct_response prefix check

The regexes to detect the optional prefixes at the start of some
interaction types are constructed to optionally match the prefix, so we
need to ensure that the matched group is really there when trying to
strip it from the given value in CRCheckValueNodes.

also remove "check for prefix" from CRcheckValueNodes

prefixes on correct responses patterns are removed in the section above
by CRremovePrefixes, so this block was redundant.
The `.pre` property for each correct_response is not used anywhere
else, so this removes their definitions too.
mod/scorm/datamodels/scorm_13.js