mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-13 21:33:20 +01:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
7b37676be2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue