Skip to content

Commit d09090f

Browse files
author
Julian Xhokaxhiu
committed
youtube-nocookie detection improved.
1 parent 3943f4f commit d09090f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/jquery.swipebox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@
716716
isVideo : function ( src ) {
717717

718718
if ( src ) {
719-
if ( src.match( /youtube\.com\/watch\?v=([a-zA-Z0-9\-_]+)/) || src.match( /vimeo\.com\/([0-9]*)/ ) || src.match( /youtu\.be\/([a-zA-Z0-9\-_]+)/ ) ) {
719+
if ( src.match( /(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/) || src.match( /vimeo\.com\/([0-9]*)/ ) || src.match( /youtu\.be\/([a-zA-Z0-9\-_]+)/ ) ) {
720720
return true;
721721
}
722722

0 commit comments

Comments
 (0)