diff --git a/public/js/profileGen.js b/public/js/profileGen.js index e8119a4..f9cf82a 100644 --- a/public/js/profileGen.js +++ b/public/js/profileGen.js @@ -8,6 +8,11 @@ function profileGen(username, container) window.location.href = "./GraphGenerator.html"; } parseOrgs(user.login).then( (orgsReturn) => { + if (user.blog) { + const rx = new RegExp("^(http|https)://", "i"); + const match = rx.test(user.blog); + user.blog = match ? user.blog : `http://${user.blog}`; + } let html = `