Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Kevin Korte28,148 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.