Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 483858

Summary: URLHyperlinkDetector will return wrong result if the url has prefix
Product: [Eclipse Project] Platform Reporter: yu wang <demonrain>
Component: TextAssignee: Thomas Wolf <twolf>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, jonah, mistria
Version: 4.3.2   
Target Milestone: 4.21 M1   
Hardware: All   
OS: All   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=558573
https://bugs.eclipse.org/bugs/show_bug.cgi?id=558656
https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/181768
https://git.eclipse.org/c/platform/eclipse.platform.text.git/commit/?id=b86fe7cd8bf0a0258dcbfe694061d7b5fbe3791b
Whiteboard:

Description yu wang CLA 2015-12-07 20:37:10 EST
class :org.eclipse.ui.internal.editors.text.URLHyperlinkDetector
method :detectHyperlinks()

example:
<a href="test:https://bugs.eclipse.org/bugs"></a>

should return https://bugs.eclipse.org/bugs,
but it returns https://bugs.eclipse.org/bugs" 
and the region has also detected more than one character.
Comment 1 Eclipse Genie CLA 2021-06-10 07:25:59 EDT
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/181768
Comment 3 Mickael Istria CLA 2021-06-10 13:03:48 EDT
Thanks Thomas!