Sha256: 0fd4d78daa0f77dff17c81dd94524c433ef866facc857be93710a6f54c5110c0

Contents?: true

Size: 423 Bytes

Versions: 4

Compression:

Stored size: 423 Bytes

Contents

# 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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lita-jira-0.7.1 lib/jirahelper/regex.rb
lita-jira-0.7.0 lib/jirahelper/regex.rb
lita-jira-0.6.0 lib/jirahelper/regex.rb
lita-jira-0.5.0 lib/jirahelper/regex.rb