app/models/changeset/pull_request.rb
# Matches a section heading named "Risks".
Matches a section heading named "Risks".
Matches a section heading named " Risks " .
def parse_risks!
    parts = @data.body.to_s.split(RISKS_SECTION, 2)
    if parts.size == 1
      nil
    else
      parts[1] && parts[1].strip
    end
  end
def parse_risks! parts = @data . body . to_s . split ( RISKS_SECTION , 2 ) if parts . size == 1 nil else parts [ 1 ] && parts [ 1 ] . strip end end
Matches a section heading named "Risks".
Matches a section heading named " Risks " .