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', }; }