Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix generated facebook url

  • Loading branch information...
commit 5b4c07e7ea2b46748a9d590a14745a761e25fb6b 1 parent 89a36f7
@rohit rohit authored tenderlove committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/helpers/accounts_helper.rb
View
2  app/helpers/accounts_helper.rb
@@ -10,7 +10,7 @@ def link_to_service name, service
when 'github'
link_to name, 'http://github.com/' + service.key
when 'facebook'
- if service.key =~ /^\sd+$/
+ if service.key =~ /^\s*\d+$/
link_to name, 'http://www.facebook.com/profile.php?id=' + service.key
else
link_to name, 'http://www.facebook.com/' + service.key
Please sign in to comment.
Something went wrong with that request. Please try again.