From 8d47bf931d129a38acec90ca6a363b6060e279c5 Mon Sep 17 00:00:00 2001 From: bohung Date: Thu, 1 Dec 2022 13:04:09 +0800 Subject: [PATCH] Fix bug. --- lib/tasks/e_paper_tasks.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/e_paper_tasks.rake b/lib/tasks/e_paper_tasks.rake index 533be7c..be80b6a 100644 --- a/lib/tasks/e_paper_tasks.rake +++ b/lib/tasks/e_paper_tasks.rake @@ -21,7 +21,7 @@ namespace :epaper do emails += paper.other_emails_ids emails.uniq! emails_valid = emails.select do |email| - tmp = (email_format=~email) + tmp = (email_format=~email.to_s) tmp==0 ? true : false end emails_invalid = emails - emails_valid