From 8b49d51e08e947a99588608f7d27a34cea177af7 Mon Sep 17 00:00:00 2001 From: Dessa Simpson Date: Sun, 6 Jun 2021 23:20:47 -0700 Subject: [PATCH] Trim whitespace from URL on client side Fixes #32 --- public/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/main.js b/public/main.js index a5fc0dd..e9fee5d 100644 --- a/public/main.js +++ b/public/main.js @@ -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 = "";