Skip to content

Commit

Permalink
fix: used the sanitized url
Browse files Browse the repository at this point in the history
  • Loading branch information
radiovisual committed Feb 18, 2024
1 parent 199ad1b commit 2ed6413
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};
}
Expand Down

0 comments on commit 2ed6413

Please sign in to comment.