Maybe I'm missing something but I want to ask question regarding this exercise.
The above code was supposed to strip spaces and split the emails. But I don't think it's working with emails with
/\s+/ will always strip it first. So, emails with new lines wont' work here. For e.g:
irb(main):002:0> emails = "firstname.lastname@example.org\email@example.com"
irb(main):003:0> emails.gsub(/\s+/, '').split(/[\n,;]+/)
I think we should split it first then we can strip the spaces. Even the featured solution doesn't test emails with
Thanks in advance for the feedback.