Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfbecker2009-12-17 21:28:15 +0000
committerfbecker2009-12-17 21:28:15 +0000
commitc0ce58c42b8d01cd173aa2e5550dd0c824a1eac1 (patch)
treeb19cbdc39c3aae4ae8c1d36f1c85a50bfa5c9a7c /org.eclipse.mylyn.bugzilla.ui
parentc6a7674253e00c5f988146d5eee47302ba704797 (diff)
downloadorg.eclipse.mylyn.tasks-c0ce58c42b8d01cd173aa2e5550dd0c824a1eac1.tar.gz
org.eclipse.mylyn.tasks-c0ce58c42b8d01cd173aa2e5550dd0c824a1eac1.tar.xz
org.eclipse.mylyn.tasks-c0ce58c42b8d01cd173aa2e5550dd0c824a1eac1.zip
ASSIGNED - bug 285941: hyperlink detector does not check word boundaries
https://bugs.eclipse.org/bugs/show_bug.cgi?id=285941
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.ui')
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaConnectorUi.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaConnectorUi.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaConnectorUi.java
index 6037a022a..dfb6486d8 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaConnectorUi.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaConnectorUi.java
@@ -54,7 +54,7 @@ public class BugzillaConnectorUi extends AbstractRepositoryConnectorUi {
private static final int ATTACHMENT_NUM_GROUP = 6;
- private static final String regexp = "(?:(duplicate of|(\\s|^)+bug|(\\s|^)+task)( ?#? ?)(\\d+))|(?:Created an attachment\\s*\\(id=(\\d+)\\))"; //$NON-NLS-1$
+ private static final String regexp = "(?:(duplicate of|(\\W||^)+bug|(\\W|^)+task)( ?#? ?)(\\d+))|(?:Created an attachment\\s*\\(id=(\\d+)\\))"; //$NON-NLS-1$
private static final Pattern PATTERN = Pattern.compile(regexp, Pattern.CASE_INSENSITIVE);
@@ -196,8 +196,7 @@ public class BugzillaConnectorUi extends AbstractRepositoryConnectorUi {
start = m.start() + m.group().indexOf(m.group(TASK_NUM_GROUP));
} else {
start = m.start();
- if (m.group().startsWith(" ")) { //$NON-NLS-1$
- start++;
+ for (int index = 0; index < m.group().length() && !Character.isLetter(m.group().charAt(index)); index++, start++) {
}
}

Back to the top