|
From: <lac...@us...> - 2007-10-04 09:08:16
|
Revision: 31
http://td2jira.svn.sourceforge.net/td2jira/?rev=31&view=rev
Author: lacostej
Date: 2007-10-04 02:08:09 -0700 (Thu, 04 Oct 2007)
Log Message:
-----------
fixed bug where matching Jira issue couldn't be identified due to line endings issues in reg.exp matcher.
Modified Paths:
--------------
trunk/td2jira/docs/ReleaseNotes.txt
trunk/td2jira/src/td2jira/Sync.java
Modified: trunk/td2jira/docs/ReleaseNotes.txt
===================================================================
--- trunk/td2jira/docs/ReleaseNotes.txt 2007-10-04 09:07:37 UTC (rev 30)
+++ trunk/td2jira/docs/ReleaseNotes.txt 2007-10-04 09:08:09 UTC (rev 31)
@@ -4,4 +4,6 @@
* TASK reorganized project structure
* TASK reformated code
+* BUG fixed bug where matching Jira issue couldn't be identified due to line endings issues in reg.exp matcher.
+
Old release
Modified: trunk/td2jira/src/td2jira/Sync.java
===================================================================
--- trunk/td2jira/src/td2jira/Sync.java 2007-10-04 09:07:37 UTC (rev 30)
+++ trunk/td2jira/src/td2jira/Sync.java 2007-10-04 09:08:09 UTC (rev 31)
@@ -199,7 +199,7 @@
private static JIRAIssue findLatestJIRAIssue(IBug tdTask) {
JIRAIssue found = null;
- String pattern1 = ".*" + Config.JIRA_SUMMARY_PREFIX.toUpperCase() + "\\s" + tdTask.getId() + "[^0-9].*";
+ String pattern1 = "(?s).*" + Config.JIRA_SUMMARY_PREFIX.toUpperCase() + "\\s" + tdTask.getId() + "[^0-9].*";
for (JIRAIssue jiraTask : jiraTasks) {
if (jiraTask.getSummary().toUpperCase().matches(pattern1)) {
if (found == null) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|