@ormoshe/js-video-url-parser 0.5.18 → 0.5.19

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.
@@ -1579,7 +1579,7 @@
1579
1579
 
1580
1580
  Voomly.prototype.parseUrl = function(url) {
1581
1581
  var match = url.match(
1582
- /(?:v|embed)\/([a-zA-Z\d]+)/i
1582
+ /(?:v|embed)\/([\w-]+)/i
1583
1583
  );
1584
1584
  return match ? match[1] : undefined;
1585
1585
  };
@@ -15,7 +15,7 @@ module.exports = Voomly;
15
15
 
16
16
  Voomly.prototype.parseUrl = function(url) {
17
17
  var match = url.match(
18
- /(?:v|embed)\/([a-zA-Z\d]+)/i
18
+ /(?:v|embed)\/([\w-]+)/i
19
19
  );
20
20
  return match ? match[1] : undefined;
21
21
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ormoshe/js-video-url-parser",
3
- "version": "0.5.18",
3
+ "version": "0.5.19",
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",