diff --git a/js/plugins.js b/js/plugins.js index 8218f78..9d76376 100644 --- a/js/plugins.js +++ b/js/plugins.js @@ -558,8 +558,8 @@ plugins.factory('userPlugins', function() { * Very similar to twitter */ var tikTokPlugin = new UrlPlugin('TikTok', function(url) { - var regex = /^https?:\/\/(www\.)?tiktok\.com\/@(.+)\/video\/(.+)/i, - match = url.match(regex); + var regex = /^https?:\/\/(?:www\.)?tiktok\.com\/@(?:.+)\/video\/(?:.+)\/?$|^https?:\/\/vm\.tiktok\.com\/[a-zA-Z1-9]{7}\/?$/i; + var match = url.match(regex); if (match) { @@ -571,12 +571,12 @@ plugins.factory('userPlugins', function() { return response.json(); }) .then(function(data) { - // separate the HTML into content and script tag + // Separate the HTML into content and script tag var scriptIndex = data.html.indexOf("