mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
Replace the regex + padEnd parseWebVttTimestamp with split(/[:.]/) + a reduce over right-aligned weights — handles the [HH:]MM:SS.ttt hours-optional forms in one expression. Behavior-equivalent for spec-valid LOCAL (X-TIMESTAMP-MAP is always [HH:]MM:SS.ttt); intentionally narrows off the padEnd/undefined tolerance for non-spec input. −51 B gzipped in the hls bundle; 6/6 tests pass. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>