* [sup-devel] [PATCH] If the name cannot be parsed out, return "" instead of nil.
@ 2011-01-23 23:04 Pi
0 siblings, 0 replies; only message in thread
From: Pi @ 2011-01-23 23:04 UTC (permalink / raw)
To: sup-devel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-01-23 23:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-23 23:04 [sup-devel] [PATCH] If the name cannot be parsed out, return "" instead of nil Pi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox