lib/jirahelper/regex.rb in lita-jira-0.4.0 vs lib/jirahelper/regex.rb in lita-jira-0.5.0
- old
+ new
@@ -1,8 +1,11 @@
# Helper functions for lita-jira
module JiraHelper
# Regular expressions
module Regex
+ COMMENT_PATTERN = /\"(?<comment>.+)\"/
+ SUBJECT_PATTERN = /\"(?<subject>.+)\"/
+ SUMMARY_PATTERN = /\"(?<summary>.+)\"/
PROJECT_PATTERN = /(?<project>[a-zA-Z0-9]{1,10})/
ISSUE_PATTERN = /(?<issue>#{PROJECT_PATTERN}-[0-9]{1,5}+)/
EMAIL_PATTERN = /(?<email>[\w+\-.]+@[a-z\d\-]+(\.[a-z]+)*\.[a-z]+)/i
end
end