diff --git a/server.js b/server.js index b539658..51fb363 100644 --- a/server.js +++ b/server.js @@ -92,10 +92,7 @@ app.get('/:user', async function (req, res) { await reposResp.json() ]) user.repo_count = repos.length - user.description = user.description - ?.split('---\r\n') - .slice(0, -1) - .join('---\r\n') + user.description = user.description?.split('---\r\n')[0] const html = await eta.renderAsync('user', { user, debug