Skip to content
Snippets Groups Projects
Commit a7f95a8d authored by Arnaud Levy's avatar Arnaud Levy
Browse files

Fix

parent 7da02e2b
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,6 @@ class ContactDetails::Github < ContactDetails::SocialNetwork
.remove('www.')
.remove('github.com')
.remove('@')
.remove('/')
.delete_prefix('/')
end
end
\ No newline at end of file
......@@ -64,6 +64,12 @@ class ContactDetailsTest < ActiveSupport::TestCase
'https://github.com/noesya',
'https://www.github.com/noesya',
]
batch_test :github, 'osunyorg/admin', 'https://github.com/osunyorg/admin', [
'osunyorg/admin',
'github.com/osunyorg/admin',
'https://github.com/osunyorg/admin',
'https://www.github.com/osunyorg/admin',
]
end
test 'instagram' do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment