# Helper functions for lita-jira module JiraHelper # Regular expressions module Regex COMMENT_PATTERN = /\"(?.+)\"/ SUBJECT_PATTERN = /\"(?.+)\"/ SUMMARY_PATTERN = /\"(?.+)\"/ PROJECT_PATTERN = /(?[a-zA-Z0-9]{1,10})/ ISSUE_PATTERN = /(?#{PROJECT_PATTERN}-[0-9]{1,5}+)/ EMAIL_PATTERN = /(?[\w+\-.]+@[a-z\d\-]+(\.[a-z]+)*\.[a-z]+)/i AMBIENT_PATTERN = /(\s|^)#{ISSUE_PATTERN}/ end end