mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
WI-10 Support CSS linked with via parametrized link
This commit is contained in:
+9
-2
@@ -174,15 +174,22 @@ public class FileReference implements FileReferenceOwner, PsiPolyVariantReferenc
|
||||
|
||||
@Nullable
|
||||
private String decode(final String text) {
|
||||
// strip http get parameters
|
||||
String _text = text;
|
||||
if (text.indexOf('?') >= 0) {
|
||||
_text = text.substring(0, text.lastIndexOf('?'));
|
||||
}
|
||||
|
||||
if (myFileReferenceSet.isUrlEncoded()) {
|
||||
try {
|
||||
return new URI(text).getPath();
|
||||
return new URI(_text).getPath();
|
||||
}
|
||||
catch (Exception e) {
|
||||
return text;
|
||||
}
|
||||
}
|
||||
return text;
|
||||
|
||||
return _text;
|
||||
}
|
||||
|
||||
public Object[] getVariants() {
|
||||
|
||||
Reference in New Issue
Block a user