Skip to content

Commit

Permalink
Fix URL extraction in Project model
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Dec 19, 2023
1 parent eb2728a commit 7120fcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ def readme_urls
return [] unless readme.present?
urls = URI.extract(readme.gsub(/[\[\]]/, ' '), ['http', 'https']).uniq
# remove trailing )
urls.map{|u| u.gsub(/\)$/, '') }
urls.map{|u| u.gsub(/\)$/, '').gsub(/\.\)$/, '') }
end

def readme_domains
Expand Down

0 comments on commit 7120fcd

Please sign in to comment.