Skip to content

Commit

Permalink
Release v0.11.9
Browse files Browse the repository at this point in the history
  • Loading branch information
RickEyre committed May 12, 2014
1 parent da48ace commit 0471adb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vtt.js",
"description": "A JavaScript implementation of the WebVTT specification.",
"version": "0.11.8",
"version": "0.11.9",
"homepage": "https://github.com/mozilla/vtt.js",
"authors": [
"Andreas Gal <gal@mozilla.com>",
Expand Down
10 changes: 7 additions & 3 deletions dist/vtt.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* vtt.js - v0.11.8 (https://github.com/mozilla/vtt.js) built on 25-04-2014 */
/* vtt.js - v0.11.9 (https://github.com/mozilla/vtt.js) built on 12-05-2014 */

/**
* Copyright 2013 vtt.js Contributors
Expand Down Expand Up @@ -555,11 +555,14 @@
}

function parseCue(input, cue, regionList) {
// Remember the original input if we need to throw an error.
var oInput = input;
// 4.1 WebVTT timestamp
function consumeTimeStamp() {
var ts = parseTimeStamp(input);
if (ts === null) {
throw new ParsingError(ParsingError.Errors.BadTimeStamp);
throw new ParsingError(ParsingError.Errors.BadTimeStamp,
"Malformed timestamp: " + oInput);
}
// Remove time stamp from input.
input = input.replace(/^[^\sa-zA-Z-]+/, "");
Expand Down Expand Up @@ -644,7 +647,8 @@
skipWhitespace();
if (input.substr(0, 3) !== "-->") { // (3) next characters must match "-->"
throw new ParsingError(ParsingError.Errors.BadTimeStamp,
"Malformed time stamp (time stamps must be separated by '-->').");
"Malformed time stamp (time stamps must be separated by '-->'): " +
oInput);
}
input = input.substr(3);
skipWhitespace();
Expand Down
4 changes: 2 additions & 2 deletions dist/vtt.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Andreas Gal <gal@mozilla.com>",
"name": "vtt.js",
"description": "A JavaScript implementation of the WebVTT specification.",
"version": "0.11.8",
"version": "0.11.9",
"repository": {
"type": "git",
"url": "https://github.com/mozilla/vtt.js.git"
Expand Down

0 comments on commit 0471adb

Please sign in to comment.