From 7a7e735d3655c0253a7dce1aeb273946e4a96c79 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Mon, 9 Apr 2018 23:15:01 -0500 Subject: [PATCH] Use .strip for finding email --- src/helpers.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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