mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-20 18:40:00 +01:00
numbers
This commit is contained in:
parent
11cd8b59f8
commit
3567ba6190
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ class User < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def display_website
|
def display_website
|
||||||
website.match(/https?:\/\/([A-Za-z.\-]+)\/?(?:.*)/i)[1]
|
website.match(/https?:\/\/([A-Za-z.\-0-9]+)\/?(?:.*)/i)[1]
|
||||||
rescue NoMethodError
|
rescue NoMethodError
|
||||||
website
|
website
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue