@ormoshe/js-video-url-parser 0.5.14 → 0.5.15

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.
@@ -1791,7 +1791,7 @@
1791
1791
 
1792
1792
  Groove.prototype.parse = function(url, params) {
1793
1793
  var match = url.match(
1794
- /(?:play|embed)\/([\w-]+)\/([\w-]+)/i
1794
+ /(?:videopage)\/([\w-]+)\/([\w-]+)/i
1795
1795
  );
1796
1796
  var result = {
1797
1797
  mediaType: this.mediaTypes.VIDEO,
@@ -15,7 +15,7 @@ module.exports = Groove;
15
15
 
16
16
  Groove.prototype.parse = function(url, params) {
17
17
  var match = url.match(
18
- /(?:play|embed)\/([\w-]+)\/([\w-]+)/i
18
+ /(?:videopage)\/([\w-]+)\/([\w-]+)/i
19
19
  );
20
20
  var result = {
21
21
  mediaType: this.mediaTypes.VIDEO,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ormoshe/js-video-url-parser",
3
- "version": "0.5.14",
3
+ "version": "0.5.15",
4
4
  "description": "A parser to extract provider, video id, starttime and others from YouTube, Vimeo, ... urls",
5
5
  "main": "lib/index.js",
6
6
  "browser": "dist/jsVideoUrlParser.js",