From bd89f90a3d77f3a2694c5b179177cdac914070c5 Mon Sep 17 00:00:00 2001 From: Goh Jia Hao Date: Sun, 10 Jun 2018 10:51:09 -0700 Subject: [PATCH] Remove workaround for slashes in page title This was reported in #22 and has been fixed upstream in electron-userland/electron-packager#308 --- src/infer/inferTitle.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/infer/inferTitle.js b/src/infer/inferTitle.js index fc3a212..7636f93 100644 --- a/src/infer/inferTitle.js +++ b/src/infer/inferTitle.js @@ -18,8 +18,7 @@ function inferTitle(url) { const $ = cheerio.load(data); return $('title') .first() - .text() - .replace(/\//g, ''); + .text(); }); }