From 317a22573856d8964c14043dc2fdc52a7e97a4f3 Mon Sep 17 00:00:00 2001 From: Stanley F Date: Wed, 18 Nov 2020 17:24:13 +0100 Subject: [PATCH] fix URL check to allow 3rd party domains --- lib/get-post.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/get-post.js b/lib/get-post.js index 9cd3e3d..6a55679 100644 --- a/lib/get-post.js +++ b/lib/get-post.js @@ -20,7 +20,7 @@ function createFolder(path) { module.exports = async function(mediumURL, params = {}) { options = params - if (!mediumURL || mediumURL.substr(0, 18) !== 'https://medium.com') { + if (!mediumURL) { throw new Error('no url or not a medium.com url') }