fix regex

This commit is contained in:
2023-02-23 09:38:37 -05:00
parent 104f83d892
commit 35c2905010

View File

@@ -1,15 +1,15 @@
// @flow // @flow
const scorm12 = { const scorm12 = {
CMIString256: '^.{0,}$', CMIString256: '^.*$',
CMIString4096: '^.{0,}$', CMIString4096: '^.*$',
CMITime: '^(?:[01]\\d|2[0123]):(?:[012345]\\d):(?:[012345]\\d)$', // eslint-disable-line CMITime: '^(?:[01]\\d|2[0123]):(?:[012345]\\d):(?:[012345]\\d)$', // eslint-disable-line
CMITimespan: '^([0-9]{2,}):([0-9]{2}):([0-9]{2})(\.[0-9]{1,2})?$', // eslint-disable-line CMITimespan: '^([0-9]{2,}):([0-9]{2}):([0-9]{2})(\.[0-9]{1,2})?$', // eslint-disable-line
CMIInteger: '^\\d+$', CMIInteger: '^\\d+$',
CMISInteger: '^-?([0-9]+)$', CMISInteger: '^-?([0-9]+)$',
CMIDecimal: '^-?([0-9]{0,3})(\.[0-9]*)?$', // eslint-disable-line CMIDecimal: '^-?([0-9]{0,3})(\.[0-9]*)?$', // eslint-disable-line
CMIIdentifier: '^[\\u0021-\\u007E\\s]{0,}$', CMIIdentifier: '^.*$',
CMIFeedback: '^.{0,}$', // This must be redefined CMIFeedback: '^.*$', // This must be redefined
CMIIndex: '[._](\\d+).', CMIIndex: '[._](\\d+).',
// Vocabulary Data Type Definition // Vocabulary Data Type Definition