Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsminto2005-08-22 13:38:50 -0400
committersminto2005-08-22 13:38:50 -0400
commit46428a3c3e5a007bafcb99e67f700c57e29f3857 (patch)
tree9980eb2e2731858c55dd0dc9a9160d73abd9a03f
parent7268a2ca8896e36586d98d9cd38526d8e68bac27 (diff)
downloadorg.eclipse.mylyn.tasks-46428a3c3e5a007bafcb99e67f700c57e29f3857.tar.gz
org.eclipse.mylyn.tasks-46428a3c3e5a007bafcb99e67f700c57e29f3857.tar.xz
org.eclipse.mylyn.tasks-46428a3c3e5a007bafcb99e67f700c57e29f3857.zip
added support for having a trailing :
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/bugs/java/BugzillaHyperLinkDetector.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/bugs/java/BugzillaHyperLinkDetector.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/bugs/java/BugzillaHyperLinkDetector.java
index 4512c15ca..c01874f5c 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/bugs/java/BugzillaHyperLinkDetector.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/bugs/java/BugzillaHyperLinkDetector.java
@@ -128,6 +128,12 @@ public class BugzillaHyperLinkDetector extends AbstractMylarHyperlinkDetector {
int endCommentStart = comment.indexOf(endComment);
int end = comment.indexOf(" ", endCommentStart);
+ int end2 = comment.indexOf(":", endCommentStart);
+
+ if(end2 < end || (end == -1 && end2 != -1)){
+ end = end2;
+ }
+
if(end == -1)
end = comment.length();

Back to the top