Files
importer-issue-ops/lib/concerns/issue_parser.rb

11 lines
188 B
Ruby
Raw Permalink Normal View History

2022-01-07 19:45:53 +00:00
# frozen_string_literal: true
module IssueParser
def parameter_from_issue(name, text)
match = text.match(/#{name}: ([^\n]+)/)
return if match.nil?
match[1].strip
end
end