mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
protocol relative urls (//) fix
This commit is contained in:
@@ -39,7 +39,7 @@ public class GlobalPathReferenceProvider implements PathReferenceProvider {
|
||||
}
|
||||
final TextRange range = manipulator.getRangeInElement(psiElement);
|
||||
final String s = range.substring(psiElement.getText());
|
||||
if (s.contains("://") || s.startsWith(MAILTO_PREFIX)) {
|
||||
if (s.contains("://") || s.startsWith(MAILTO_PREFIX) || s.startsWith("//")) {
|
||||
final PsiReference reference = PsiReferenceBase.createSelfReference(psiElement, psiElement);
|
||||
references.add(reference);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user