lib/jira/plugin.rb in danger-jira-0.9.0 vs lib/jira/plugin.rb in danger-jira-0.9.1
- old
+ new
@@ -124,10 +124,10 @@
return jira_issues.uniq
end
def should_skip_jira?(search_title: true)
# Consider first occurrence of 'no-jira' or nojira
- regexp = Regexp.new("(no-jira|nojira)", true)
+ regexp = Regexp.new("(no-jira|nojira|NO-JIRA|NOJIRA)", true)
if search_title
vcs_host.pr_title.gsub(regexp) do |match|
return true unless match.empty?
end