From eee1622801549a40f8c0bbcb9f9ed09e44a3727b Mon Sep 17 00:00:00 2001
From: chylex <contact@chylex.com>
Date: Wed, 29 Mar 2017 18:18:09 +0200
Subject: [PATCH] Fix TweetDeck not showing previews for youtu.be links with
 https

---
 Resources/Scripts/code.js | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Resources/Scripts/code.js b/Resources/Scripts/code.js
index 3a8d310a..3d5f7bdd 100644
--- a/Resources/Scripts/code.js
+++ b/Resources/Scripts/code.js
@@ -585,6 +585,13 @@
     });
   })();
   
+  //
+  // Block: Fix youtu.be previews not showing up for https links.
+  //
+  TD.services.TwitterMedia.YOUTUBE_TINY_RE = new RegExp(TD.services.TwitterMedia.YOUTUBE_TINY_RE.source.replace("http:", "https?:"));
+  TD.services.TwitterMedia.YOUTUBE_RE = new RegExp(TD.services.TwitterMedia.YOUTUBE_LONG_RE.source+"|"+TD.services.TwitterMedia.YOUTUBE_TINY_RE.source);
+  TD.services.TwitterMedia.SERVICES["youtube"] = TD.services.TwitterMedia.YOUTUBE_RE;
+  
   //
   // Block: Finish initialization and load plugins.
   //