This solution just cant handle 93394999987652
This comment is hidden because it contains spoiler information about the solution
It looks good to me.
Also, this is a beginner kata.
I am humbled.
Best Solution :)
Bravo :slowclap: I feel like this solution is the Truth, and the kata was a long, roundabout way of asking for this truth.
Swap color and color_.
what does 'color, color_ = color_, color' mean?
I don't understand.
This accepts the email "Evil stuff you dont want in your database here\firstname.lastname@example.org" as a valid email.
A test for this kind of behaviour would really be great as many ruby programmers (myself included) use ^ and $ when we should use \A and \z
\n being the linebreak charcater if someone is confuesd
Nice use of Array#cycle!
Thanks for your answer! It was actually pretty informative, as opposed to most (which are simply a regex comparison, like mine).
Thanks for fixing! I liked this kata for several reasons, not least of which was the unicode aspect (which took me a few minutes to sort out).
Resolved for Ruby, if there's suggestions for other languages let me know.