[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sup-devel] [PATCH] If the name cannot be parsed out, return "" instead of nil.



From: Anthony Martinez <pi+sup@pihost.us>

This un-breaks some recent change between e0191b4b64e and ec13fa74d that
I haven't tracked down.
---
 lib/sup/person.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/sup/person.rb b/lib/sup/person.rb
index ee23fc5..19459e0 100644
--- a/lib/sup/person.rb
+++ b/lib/sup/person.rb
@@ -103,7 +103,7 @@ class Person
       when /((\S+?)@\S+)/
         [$2, $1]
       else
-        [nil, s]
+        ["", s]
       end
 
     Person.new name, email
-- 
1.6.6

_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel