@udecode/plate-media
Advanced tools
Comparing version 40.2.3 to 40.2.4
@@ -464,7 +464,8 @@ "use strict"; | ||
var twitterRegex = /^https?:\/\/(?:twitter|x)\.com\/(?:#!\/)?(\w+)\/status(es)?\/(\d+)/; | ||
var TWITTER_ID_INDEX = 3; | ||
var parseTwitterUrl = (url) => { | ||
var _a, _b; | ||
if (twitterRegex.exec(url)) { | ||
const match = twitterRegex.exec(url); | ||
if (match) { | ||
return { | ||
id: (_b = (_a = twitterRegex.exec(url)) == null ? void 0 : _a.groups) == null ? void 0 : _b.id, | ||
id: match[TWITTER_ID_INDEX], | ||
provider: "twitter", | ||
@@ -471,0 +472,0 @@ url |
{ | ||
"name": "@udecode/plate-media", | ||
"version": "40.2.3", | ||
"version": "40.2.4", | ||
"description": "Plate Media plugin", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1105912
16277