Skip to content
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

double escaping of \ in regex string incorrect in jubilator #9

Open
jawspeak opened this issue May 12, 2011 · 1 comment
Open

double escaping of \ in regex string incorrect in jubilator #9

jawspeak opened this issue May 12, 2011 · 1 comment

Comments

@jawspeak
Copy link

http://jubilator.thumblemonks.com/#/BinaryMuse/rails-book/blob/dcbfba994fc6dcf622ba3031d78edd1d41842456/user.rb

See the regex there, it shows up as:
email_regex = /\A([^@\s]+)@((?:[-a-z0-9]+.)+[a-z0-9]+)\Z/i

The raw in github is:
email_regex = /\A([^@\s]+)@((?:[-a-z0-9]+.)+[a-z0-9]+)\Z/i
(https://github.com/BinaryMuse/rails-book/raw/master/app/models/user.rb)
Notice the double escaping.

This was in Firefox 3.6.3 on OS X

@toothrot
Copy link
Member

Wow! nice find. I'll take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants