Skip to content

Commit f7c5f76

Browse files
committed
feat: Support unlisted vimeo urls with url parameters
1 parent 82af884 commit f7c5f76

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

dist/jsVideoUrlParser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@
641641
};
642642

643643
Vimeo.prototype.parseHash = function (url) {
644-
var match = url.match(/\/\d+\/(\w+)$/i);
644+
var match = url.match(/\/\d+\/(\w+)(?:\?|$)/i);
645645
return match ? match[1] : undefined;
646646
};
647647

0 commit comments

Comments
 (0)