From e4ef4173357810bc33ca0eca51f7bd15d31b70f7 Mon Sep 17 00:00:00 2001 From: Vera Rojman <8806781+verarojman@users.noreply.github.com> Date: Fri, 29 Jul 2022 13:02:53 +0200 Subject: [PATCH] Change name parser output to a hash --- lib/decidim/direct_verifications/parsers/name_parser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/decidim/direct_verifications/parsers/name_parser.rb b/lib/decidim/direct_verifications/parsers/name_parser.rb index 3c5f688..526845b 100644 --- a/lib/decidim/direct_verifications/parsers/name_parser.rb +++ b/lib/decidim/direct_verifications/parsers/name_parser.rb @@ -18,7 +18,7 @@ def lines def parse_data(email, line, _header) name = parse_name(email, line) name = strip_non_alpha_chars(name) - name.presence || fallback_name(email) + { name: name.presence || fallback_name(email) } end private