// ---------------------------------------------------------------------------
-export const timecodeRegexString = `((\\d+)[h:])?((\\d+)[m:])?((\\d+)s?)?`
+export const timecodeRegexString = `((\\d+)[h:])?((\\d+)[m:])?((\\d+)s?)`
function timeToInt (time: number | string) {
if (!time) return 0
const reg = new RegExp(`^${timecodeRegexString}$`)
const matches = time.match(reg)
-
if (!matches) return 0
const hours = parseInt(matches[2] || '0', 10)
expect(parseChapters('my super description\nno?')).to.deep.equal([])
expect(parseChapters('m00:00 super description\nno?')).to.deep.equal([])
expect(parseChapters('00:00super description\nno?')).to.deep.equal([])
+ expect(parseChapters('my super description\n'.repeat(10) + ' * list1\n * list 2\n * list 3')).to.deep.equal([])
})
it('Should extract chapters', function () {