-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add email validate #1999
add email validate #1999
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to use the regex in the line mentioned.
You don't need to write it separately
We are glad to see your Pull request. |
Hi! Looks like you're having some issues -- maybe @publiclab/reviewers can help out. You can always look through the output of the tests to see what the errors are, by clicking on the little red X next to your last commit: https://travis-ci.org/publiclab/plots2/builds/328785772 Thanks for your contribution!! I'm sure we'll figure it out. |
Hi, @Paarmita! Thanks for being so patient and kudos for taking this step to improve publiclab. It really means a lot to all of us. I see your pull request is getting an error, specifically: This most probably means that there's something wrong with the Regex, so I'd advise you to kindly take a look at it again. |
Spoiler alert: |
http://rubular.com/ could be helpful to test out regex!! Thanks!
…On Tue, Jan 16, 2018 at 2:35 PM, Ujjwal Sharma ***@***.***> wrote:
Spoiler alert: \A[-\w+.]+@[\da-z-.]+.[a-z]+\z seemed to work.
—
You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub
<#1999 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJwtFYuJVEftvqN9k2iCSYcmA4R8bks5tLPoGgaJpZM4RdVSY>
.
|
@Paarmita Do you need any help with this? Please, let us know! We are happy to help. |
@ryzokuken |
@Ankit-Singla idk, you should use whatever works in the tests, I tried that Regex on rubular and it seemed to work. |
@Paarmita @Ankit-Singla @ryzokuken how's this coming along? Sorry this is a little more complex -- just a suggestion -- you can take a test string and input it in http://rubular.com with the regex you're using, like this: http://rubular.com/r/vKHN1A7H4k @Ankit-Singla can you offer an example of why the above regex would fail, and how your proposed improvement would be better? Thank you! |
@jywarren The regex suggested by @ryzokuken ( |
@SidharthBansal was this already fixed in a PR? |
Parmita left and ankit was doing this. So I closed this pr |
Make sure these boxes are checked before your pull request is ready to be reviewed and merged. Thanks!
Solves #1996
rake test:all
Please be sure you've reviewed our contribution guidelines at https://publiclab.org/wiki/contributing-to-public-lab-software
We have a loose schedule of reviewing and pulling in changes every Tuesday and Friday, and publishing changes on Fridays. Please alert developers on plots-dev@googlegroups.com when your request is ready or if you need assistance.
Thanks!