lib/jirahelper/regex.rb in lita-jira-0.7.2 vs lib/jirahelper/regex.rb in lita-jira-0.8.0

- old
+ new

@@ -6,8 +6,8 @@ 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}/ + AMBIENT_PATTERN = /(\s|^)#{ISSUE_PATTERN}/ end end