thumblemonks / jubilator

Browse public GitHub repos in style!
http://jubilator.thumblemonks.com
42 stars 2 forks source link

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

Open jawspeak opened 13 years ago

jawspeak commented 13 years ago

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 commented 13 years ago

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