module LinkedinProfile
Grep linkedin profile
Public Instance Methods
grep_linkedin_profile(response)
click to toggle source
# File lib/parsers/linkedin_profile.rb, line 5 def grep_linkedin_profile(response) return if response.nil? || response.empty? linkedin_profile_regex = %r{(?im)(https:\/\/www\.linkedin\.com\/company\/[^"'\?<>\s\/]+)} response.scan(linkedin_profile_regex).flatten.compact.uniq end