lib/job.rb
# finds apply URL from first paragraph that contains DevOps, SRE or Infrastructure
finds apply URL from first paragraph that contains DevOps, SRE or Infrastructure
finds apply URL from first paragraph that contains DevOps SRE or Infrastructure
def find_apply_url
    return if all_apply_urls.empty?
    description.split("</p>").each do |paragraph|
      if paragraph.match?(/devops|\bsre\b|infrastructure\sengineer/i)
        url = extract_apply_urls(paragraph).first
        return url if url
      end
    end
    all_apply_urls.first
  end
def find_apply_url return if all_apply_urls . empty? description . split ( "</p>" ) . each do | paragraph | if paragraph . match? ( / devops| \b sre \b |infrastructure \s engineer /i ) url = extract_apply_urls ( paragraph ) . first return url if url end end all_apply_urls . first end
finds apply URL from first paragraph that contains DevOps, SRE or Infrastructure
finds apply URL from first paragraph that contains DevOps SRE or Infrastructure