From 3567ba6190a15bff63c8bcf92ec1b8f436e9fbb7 Mon Sep 17 00:00:00 2001 From: nilsding Date: Mon, 5 Jan 2015 10:16:00 +0100 Subject: [PATCH] numbers --- app/models/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user.rb b/app/models/user.rb index ca2a2182..a97b37df 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -127,7 +127,7 @@ class User < ActiveRecord::Base end def display_website - website.match(/https?:\/\/([A-Za-z.\-]+)\/?(?:.*)/i)[1] + website.match(/https?:\/\/([A-Za-z.\-0-9]+)\/?(?:.*)/i)[1] rescue NoMethodError website end