From 2ed6413674e430b35bb4cfa51279b4b1cff3fee1 Mon Sep 17 00:00:00 2001 From: Michael Wuergler Date: Sun, 18 Feb 2024 23:26:03 +0100 Subject: [PATCH] fix: used the sanitized url --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index f539a74..9d18c4d 100644 --- a/src/index.js +++ b/src/index.js @@ -62,9 +62,9 @@ function getVideoId(urlString) { id: dailymotion(url), service: 'dailymotion', }; - } else if (/loom\.com/.test(string_)) { + } else if (/loom\.com/.test(url)) { metadata = { - id: loom(string_), + id: loom(url), service: 'loom', }; }