Skip to content

Commit ba67e63

Browse files
committed
feat: Support wistia short links
1 parent 82af884 commit ba67e63

File tree

4 files changed

+26
-5
lines changed

4 files changed

+26
-5
lines changed

dist/jsVideoUrlParser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@
717717

718718
function Wistia() {
719719
this.provider = 'wistia';
720-
this.alternatives = [];
720+
this.alternatives = ['wi'];
721721
this.defaultFormat = 'long';
722722
this.formats = {
723723
"long": this.createLongUrl,
@@ -736,7 +736,7 @@
736736
};
737737

738738
Wistia.prototype.parseChannel = function (url) {
739-
var match = url.match(/(?:(?:https?:)?\/\/)?([^.]*)\.wistia\./);
739+
var match = url.match(/(?:(?:https?:)?\/\/)?([^.]*)\.(?:wistia\.com|wi\.st)/);
740740
var channel = match ? match[1] : undefined;
741741

742742
if (channel === 'fast' || channel === 'content') {

0 commit comments

Comments
 (0)