Trim whitespace from URL on client side

Fixes #32
master
Dessa Simpson 2021-06-06 23:20:47 -07:00
parent 7897fe6f3d
commit 8b49d51e08
1 changed files with 1 additions and 0 deletions

View File

@ -75,6 +75,7 @@ function updateTable() {
function applyUrlTransforms(url) {
console.log("Begin applyUrlTransforms:" + url);
url = url.trim();
if (url.match(/^https?:\/\/(www\.)?youtu(\.be|be\.com)\//)) { // Youtube
console.log("Youtube");
var videoid = "";