Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2009-04-15 18:31:28 +0000
committerspingel2009-04-15 18:31:28 +0000
commitfbd751bbca9c25b020912873a9a753593756f4e0 (patch)
tree63a41296b123daf5eeb6af18972031bd2834d298 /org.eclipse.mylyn.trac.ui/src/org
parent5bf288f45daed3c76557bc3b55aa98d02161f5e2 (diff)
downloadorg.eclipse.mylyn.tasks-fbd751bbca9c25b020912873a9a753593756f4e0.tar.gz
org.eclipse.mylyn.tasks-fbd751bbca9c25b020912873a9a753593756f4e0.tar.xz
org.eclipse.mylyn.tasks-fbd751bbca9c25b020912873a9a753593756f4e0.zip
NEW - bug 265682: [api] RichTextAttributeEditor installs a hyperlink presenter with hyperlink detectors that don't correspond to those installed on the AbstractTaskEditorExtension
https://bugs.eclipse.org/bugs/show_bug.cgi?id=265682
Diffstat (limited to 'org.eclipse.mylyn.trac.ui/src/org')
-rw-r--r--org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracHyperlinkUtil.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracHyperlinkUtil.java b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracHyperlinkUtil.java
index 57568e65e..bfb6a4416 100644
--- a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracHyperlinkUtil.java
+++ b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracHyperlinkUtil.java
@@ -33,6 +33,7 @@ import org.eclipse.mylyn.tasks.ui.TaskHyperlink;
* Utility class for detecting Trac hyperlinks.
*
* @author Steffen Pingel
+ * @author David Green partial fix hyperlink detection on {{{ see bug 265682
*/
public class TracHyperlinkUtil {
@@ -42,7 +43,7 @@ public class TracHyperlinkUtil {
static Pattern reportPattern1 = createPattern("report:(\\d+)"); //$NON-NLS-1$
- static Pattern reportPattern2 = createPattern("\\{(\\d+)\\}"); //$NON-NLS-1$
+ static Pattern reportPattern2 = Pattern.compile("(?<!!|\\{\\{)\\{(\\d+)\\}"); //$NON-NLS-1$
static Pattern changesetPattern1 = createPattern("(r|changeset:)(\\d+)(/\\w+)?"); //$NON-NLS-1$

Back to the top