summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-04-09 23:15:01 -0500
committerOmar Roth <omarroth@hotmail.com>2018-04-09 23:15:01 -0500
commit7a7e735d3655c0253a7dce1aeb273946e4a96c79 (patch)
treee82f8078dd08889805b9077db2275bf27589b231 /src
parent316ca2ab34d0701940a48dad0bd2b03f5a7c6c28 (diff)
downloadinvidious-7a7e735d3655c0253a7dce1aeb273946e4a96c79.tar.gz
invidious-7a7e735d3655c0253a7dce1aeb273946e4a96c79.tar.bz2
invidious-7a7e735d3655c0253a7dce1aeb273946e4a96c79.zip
Use .strip for finding email
Diffstat (limited to 'src')
-rw-r--r--src/helpers.cr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers.cr b/src/helpers.cr
index 4b5a77e0..95715d07 100644
--- a/src/helpers.cr
+++ b/src/helpers.cr
@@ -603,7 +603,7 @@ def fetch_user(sid, client, headers)
email = feed.xpath_node(%q(//a[@class="yt-masthead-picker-header yt-masthead-picker-active-account"]))
if email
- email = email.content.lstrip.rstrip
+ email = email.content.strip
else
email = ""
end