@ormoshe/js-video-url-parser 0.5.9 → 0.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/jsVideoUrlParser.js
CHANGED
|
@@ -1712,9 +1712,7 @@
|
|
|
1712
1712
|
}
|
|
1713
1713
|
|
|
1714
1714
|
Canva.prototype.parse = function(url, params) {
|
|
1715
|
-
var match = url.match(
|
|
1716
|
-
/(?:watch|design)\/([a-zA-Z\d]+)/i
|
|
1717
|
-
);
|
|
1715
|
+
var match = url.match(/\/design\/([\w-]+)/);
|
|
1718
1716
|
var result = {
|
|
1719
1717
|
mediaType: this.mediaTypes.VIDEO,
|
|
1720
1718
|
params: params,
|
package/lib/provider/canva.js
CHANGED
|
@@ -14,9 +14,7 @@ function Canva() {
|
|
|
14
14
|
module.exports = Canva;
|
|
15
15
|
|
|
16
16
|
Canva.prototype.parse = function(url, params) {
|
|
17
|
-
var match = url.match(
|
|
18
|
-
/(?:watch|design)\/([a-zA-Z\d]+)/i
|
|
19
|
-
);
|
|
17
|
+
var match = url.match(/\/design\/([\w-]+)/);
|
|
20
18
|
var result = {
|
|
21
19
|
mediaType: this.mediaTypes.VIDEO,
|
|
22
20
|
params: params,
|
package/package.json
CHANGED