Sha256: f5f6b98ebb414d775371034969aff4416df041a15bf915da10831e1d2db6262f
Contents?: true
Size: 513 Bytes
Versions: 1
Compression:
Stored size: 513 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 AMBIENT_PATTERN = /(\s|^)#{ISSUE_PATTERN}/ POINTS_PATTERN = /(?<points>\d{1,2})/ end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lita-jira-0.8.1 | lib/jirahelper/regex.rb |