Skip to content

Commit

Permalink
Add prebuild subtitle.bundle.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Toni Räsänen committed Aug 11, 2020
1 parent 360b157 commit f73c60d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/subtitle.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function toMS(timestamp) {
return timestamp;
}

var match = timestamp.match(/^(?:(\d{2,}):)?(\d{2}):(\d{2})[,.](\d{3})$/);
var match = timestamp.match(/^(?:(\d{1,}):)?(\d{2}):(\d{2})[,.](\d{3})$/);

if (!match) {
throw new Error('Invalid SRT or VTT time format: "' + timestamp + '"');
Expand Down Expand Up @@ -238,7 +238,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
* @type {RegExp}
*/

var RE = /^((?:\d{2,}:)?\d{2}:\d{2}[,.]\d{3}) --> ((?:\d{2,}:)?\d{2}:\d{2}[,.]\d{3})(?: (.*))?$/;
var RE = /^((?:\d{1,}:)?\d{2}:\d{2}[,.]\d{3}) --> ((?:\d{1,}:)?\d{2}:\d{2}[,.]\d{3})(?: (.*))?$/;

/**
* parseTimestamps
Expand Down

0 comments on commit f73c60d

Please sign in to comment.