Welcome to the Treehouse Community
Looking to learn something new?
Kevin Korte28,109 Points
You're right. It's not a good way to validate an email address. If I remember correctly, they also explained that. This course is at it's core a beginners course. Validating email addresses, can be tricky. This introduces you to the idea of using a plugin to validate more complex inputs like emails, phones, or CC numbers. If you can start to understand how to implement a plugin, even in the most simplest form, you should start to be able to figure out how use a better option.
If I remember correctly, the only validation it's looking for is that there is an @ symbol, and it's not the first or last character.