Browse Source

is_youtube: small fix

Andrew Dolgov 9 months ago
parent
commit
62d42d6c5c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      js/functions.js

+ 1 - 1
js/functions.js

@@ -578,7 +578,7 @@ function is_youtube(src) {
 	if (src) {
 		var m = src.match(/youtube.com.*?v=([^&]+)|youtu.be\/([^&]+)/);
 
-		if (m) return m[1]
+		if (m) return m[1] || m[2];
 	}
 
 	return false;